/* 기본 스타일 리셋 */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}


body {
    font-family: Arial, sans-serif;
    background-color: #e6ecf0;
    color: #14171a;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
 

a {
    text-decoration: none;
    color: #1da1f2;
}

a:hover {
    text-decoration: underline;
}

.highlight {
    color: #1da1f2;
    margin-right: 5px;
}

.highlight:hover {
    text-decoration: underline;
}

.divider {
    border-bottom: 1px solid #e1e8ed;
    margin: 20px 0;
}

/* 전체 레이아웃 */
.container {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: 300px 1fr 350px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    justify-content: center;
}

/* 왼쪽 사이드바 */
.sidebar {
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: max(0px, calc((100% - 700px) / 2 - 330px));
    background-color: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

.sidebar h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.sidebar ul li {
    position: relative;
    margin: 10px 0;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

/* 호버 */
.sidebar ul li:hover {
    background-color: #d1d8dd;
    cursor: pointer;
}


.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo img {
    width: 40px;
    height: auto;
}

.post-btn {
    background-color: #1da1f2;
    color: #fff;
    padding: 14px 10px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 200px;
    margin-top: 20px;
}


/* 상단 바 */
.profile-top-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}

.back-arrow {
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.profile-title h2 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
}

.title-icon {
    height: 18px;
    width: auto;
    margin-left: 10px;
    transform: translateY(2px);
}

.profile-title p {
    font-size: 14px;
    color: #657786;
}




/* 메인 프로필 */
.profile-container {
    flex: 1;
    background-color: #fff;
    margin: 10px;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: calc(200px + 30px);
    margin-right: calc(260px + 50px);
    max-width: none;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.profile-header {
    position: relative !important;
    text-align: left;
}


.banner img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.profile-pic {
    position: absolute;
    bottom: 180px;
    left: 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #fff;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-details {
    padding: 20px;
    padding-top: 70px;
}

.profile-details h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
}

.profile-details p.username {
    color: #657786;
    font-size: 15px;
}

.verified {
    color: #1da1f2;
    margin-left: 5px;
}

.description {
    margin-top: 14px;
    font-size: 15px;
}

.description2 {
    margin-top: 10px;
    font-size: 14px;
    color: #657786;
}

.profile-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #657786;
    margin-top: 15px;
}

.profile-stats strong {
    color: #000000;
    font-size: 15px;
}

.profile-tabs {
    width: 100%;
    display: flex;
    position: relative;
    justify-content: center;
}

.profile-tabs ul {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin: 0;
    width: 100%;
    gap: 25px;
    color: #657786;
    position: relative;
}

.profile-tabs li {
    list-style: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.profile-tabs .active {
    font-weight: bold;
    color: #000000;
}

.profile-tabs .highlight-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 50px;
    background-color: #1da1f2;
    width: 0;
}





/* 🔔 */
.notification-button {
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    width: 25px;
    height: 25px;
    color: #666;
    gap: 5px;
    transition: transform 0.2s ease-out, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: absolute;
    top: 360px;
    left: 195px;
}

/* 🔔 호버 */
.notification-button:hover {
    transform: scale(1.05);
    background-color: #f0f8ff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}






/* 게시물 섹션 전체 */
.posts {
    padding: 0;
    margin: 0;
    padding-bottom: 60px;
}

.posts .post:last-child {
    border-bottom: 1px solid #e1e8ed;
}

#media {
    padding-bottom: 60px;
}

/* 게시물 전체 */
.post {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #ffffff;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* 호버 효과 */
.post:hover {
    background-color: #f2f2f2;
}

/* 게시물 여백 추가 부모 컨테이너 */
.posts .post:not(:last-child) {
    border-bottom: 1px solid #ddd;
}


.post.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 프로필 이미지 */
.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

/* 게시물 내용 전체 (헤더 + 내용 + 하단 통계) */
.post-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* 게시물 헤더 */
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    color: #657786;
}

.header-text strong {
    font-size: 16px;
    color: #000000;
    display: inline-flex;
    align-items: center;
}

.inline-icon {
    height: 16px;
    width: auto;
    margin-left: 6px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 게시물 내용 */
.post-content {
    font-size: 15px;
    color: #14171a;
    margin-top: -8px;
    line-height: 1.4;
    position: relative;
}

.post-content a {
    color: #1da1f2;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* 게시물 하단 통계 */
.post-footer {
    padding-top: 6px;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #657786;
    align-items: center;
    gap: 70px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.post-stats .stat {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* 클릭 상태별 색상 */
.stat-comments.clicked {
    color: #1da1f2; /* 댓글 */
}

.stat-retweets.clicked {
    color: #17bf63; /* 리트윗 */
}

.stat-likes.clicked {
    color: #e0245e; /* 좋아요 */
}

.stat-views.clicked {
    color: #ffad1f; /* 조회수 */
}


/* 애니메이션 */
.stat-comments .number.animate:after {
    content: "💬";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-blue 0.6s ease forwards;
}

.stat-retweets .number.animate:after {
    content: "🔁";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-green 0.6s ease forwards;
}

.stat-likes .number.animate:after {
    content: "❤️";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-pink 0.6s ease forwards;
}

.stat-views .number.animate:after {
    content: "📊";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-yellow 0.6s ease forwards;
}

/* 애니메이션 키프레임 */
@keyframes explode-blue {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes explode-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes explode-pink {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes explode-yellow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 댓글 */
.stat-comments:hover {
    transform: scale(1.1);
    color: #1da1f2;
}

/* 리트윗 */
.stat-retweets:hover {
    transform: scale(1.1);
    color: #17bf63;
}

/* 좋아요 */
.stat-likes:hover {
    transform: scale(1.1);
    color: #e0245e;
}

/* 조회수 */
.stat-views:hover {
    transform: scale(1.1);
    color: #ffad1f;
}

/* 댓글 애니메이션 */
.stat-comments .number.animate:after {
    content: "💬";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-comments 0.6s ease forwards;
}

@keyframes explode-comments {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #1da1f2;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        color: #1da1f2;
    }
}

/* 리트윗 애니메이션 */
.stat-retweets .number.animate:after {
    content: "🔁";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-retweets 0.6s ease forwards;
}

@keyframes explode-retweets {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #17bf63;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        color: #17bf63;
    }
}

/* 좋아요 애니메이션 */
.stat-likes .number.animate:after {
    content: "❤️";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-likes 0.6s ease forwards;
}

@keyframes explode-likes {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #e0245e;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        color: #e0245e;
    }
}

/* 조회수 애니메이션 */
.stat-views .number.animate:after {
    content: "📊";
    position: absolute;
    top: -20px;
    left: 0;
    animation: explode-views 0.6s ease forwards;
}

@keyframes explode-views {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #ffad1f;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        color: #ffad1f;
    }
}


/* 기본 콘텐츠 */
.tab-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 활성화 콘텐츠 */
.tab-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 기본 게시글 콘텐츠 활성화 */
#posts {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* 미디어 그리드 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
}

/* 미디어 이미지 */
.media-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0;
    transition: transform 0.2s ease-in-out;
}

/* 호버 시 확대 효과 */
.media-grid img:hover {
    transform: scale(1.05);
}


  



/* 기본 숨김 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

/* 활성화될 때 보이게 */
.modal.active {
    display: flex;
}

/* 모달 컨텐츠 배치 */
.modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* 왼쪽: 검은 배경 + 이미지 */
.modal-left {
    flex: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

/* 이미지 래퍼 */
.image-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 확대된 이미지 */
.modal-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 오른쪽: 게시물 내용 */
.modal-right {
    flex: 25%;
    width: 90%;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    min-width: 300px;
}

/* 통계(댓글, 리트윗, 좋아요, 조회수) 간격 */
.modal-right .post .post-stats {
    display: flex;
    gap: 15px;

}

.modal-right .post {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: auto;
    display: flex;
}

.modal-right .stat-views .number {
    display: none;
}



/* X 버튼 왼쪽 상단 배치 */
.modal-close {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px; /* 원의 너비 */
    height: 35px; /* 원의 높이 */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: -1;
}

/* X 버튼 호버 효과 */
.modal-close:hover {
    color: #ccc;
}


/* 배경 클릭 시 닫기 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


body.modal-open {
    overflow: hidden !important;
    height: 100%;
}

#imageModal .post:hover {
    background-color: transparent;
    transition: none;
}


/* 오른쪽 사이드바 */
.widgets {
    width: 25%;
    padding: 20px;
    position: fixed;
    top: 0;
    right: max(0px, calc((100% - 700px) / 2 - 330px));
    height: 100vh;
    width: 350px;
    max-width: 350px;
    background-color: transparent;
    padding: 20px;
    
}

.search-box {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.search-box input {
    width: 100%;
    padding: 12px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* X 버튼 스타일 */
.clear-btn {
    display: none;
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 25px;
    color: #657786;
    cursor: pointer;
    top: 20px;
}

/* X 버튼 hover 효과 */
.clear-btn:hover {
    color: #14171a;
}

/* 자동완성 리스트 */
.autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-list li {
    padding: 12px 12px;
    cursor: pointer;
    height: 22px;
}

.autocomplete-list li:hover {
    background-color: #f5f8fa;
}

.suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f0f0f0;
}

.box {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.follow-suggestions h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.follow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.text-container p {
    margin: 0;
    font-size: 16px;
}

.text-container p.username {
    color: #657786;
    font-size: 14px;
}

.description {
    color: #657786;
    font-size: 14px;
}

button {
    width: 80px;
    text-align: center;
    padding: 7px 0;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
}

.additional-content h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.additional-content .content-item {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.additional-content p.username {
    color: #657786;
    font-size: 14px;
}

.additional-content .content-item strong {
    color: #14171a;
    font-weight: bold;
}

.additional-content p {
    margin: 0;
    color: #657786;
}

.more-link {
    display: block;
    text-align: left;
    font-size: 15px;
    color: #1da1f2;
    text-decoration: none;
    margin-top: 40px;
    margin-left: 10px; 
}


/* 등록된 댓글 */
.comment {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px solid #e1e8ed;
    gap: 10px;
}

.comment .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    font-size: 14px;
    color: #657786;
}

.comment-header .username {
    color: #000;
}

/* @username 스타일 */
.highlight-user {
    color: #657786;
    font-weight: normal !important;
}

.comment-header .time {
    margin-left: 5px;
}

.comment-text {
    font-size: 14px;
    color: #14171a;
    margin: 5px 0 0;
}

/* 호버 효과 */
.comment:hover {
    background-color: #f5f8fa;
    cursor: pointer;
}

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

.comment-header strong {
    color: black !important;
    font-weight: bold;
}

/* "님에게 보내는 답글" 스타일 */
.reply-to {
    font-size: 12px;
    color: #657786;
    margin-bottom: 3px;
}

/* @아이디 */
.mention {
    color: #1da1f2;
}


.comment-attachment {
    display: block;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 5px;
}




/* 댓글 팝업 전체 배경 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

/* 댓글 팝업 */
.popup-content {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
}

/* 닫기 버튼 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #657786;
}

.close-btn:hover {
    color: #000;
}

/* 팝업 게시글 상단 */
.popup-header {
    display: flex;
    gap: 10px;
}

.popup-header-text p {
    margin: 0;
    font-size: 14px;
    color: #657786;
    margin-bottom: 10px;
}

/* 댓글 스타일 */
.reply-info {
    display: flex;
    align-items: center;
    margin: 10px 0 15px;
    font-size: 14px;
    color: #657786;
}

.reply-info .mention {
    color: #1da1f2;
    font-weight: 500;
}

.reply-info .vertical-line {
    width: 2px;
    height: 40px;
    background-color: #ddd;
    margin-right: 30px;
    margin-left: 20px;
}

/* strong 태그 제외 텍스트 색상 */
.popup-header-text p:not(:has(strong)) {
    color: #14171a;
}

/* strong 제외 p 태그 텍스트 스타일 */
.popup-header-text p > :not(strong) {
    color: #14171a;
}

.popup-header-text strong {
    font-size: 15px;
    color: #14171a;
}

.popup-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 해시태그 스타일 */
.popup-post-text .highlight {
    color: #1da1f2;
}

/* 해시태그 스타일 (호버) */
.popup-post-text .highlight:hover {
    text-decoration: underline;
}

/* 기본 상태 링크 스타일 */
.popup-post-text a {
    color: #1da1f2;
    text-decoration: none;
}

/* 호버 시 스타일 */
.popup-post-text a:hover {
    text-decoration: underline;
    color: #1da1f2;
}

/* 일반 텍스트 기존 스타일 유지 */
.popup-post-text {
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
}

/* 날짜 텍스트 스타일 */
.popup-header-text .date-text {
    color: #657786;
    font-size: 14px;
}


/* 댓글 입력창 */
.popup-reply {
    display: flex;
    gap: 10px;
}

#comment-input {
    width: 100%;
    height: 80px;
    border: none;
    outline: none;
    font-size: 14px;
    resize: none;
    padding: 10px;
    border-bottom: 1px solid #e1e8ed;
}

#comment-input::placeholder {
    color: #657786;
}

/* 하단 아이콘 및 버튼 */
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.popup-icons span {
    font-size: 18px;
    color: #1da1f2;
    margin-right: 15px;
    cursor: pointer;
}

.popup-icons span:hover {
    color: #1991da;
}

#submit-comment {
    background-color: #1da1f2;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#submit-comment:hover {
    background-color: #1991da;
}

/* 팝업 숨기기 */
.hidden {
    display: none;
}



/* 📷🎥 버튼 스타일 */
.popup-icons span {
    cursor: pointer;
}

/* 이미지, GIF 미리보기 스타일 */
#media-preview-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.preview-item {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}


/* 이미지/GIF 미리보기 스타일 */
#preview-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 2px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, margin-top 0.3s ease;
    justify-content: flex-start;
}

.media-preview-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 4px;
}

.uploaded-media {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    object-fit: cover;
}

.media-preview-wrapper .close-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}




.gif-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

#gif-modal {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 400px;
    height: 400px;
    overflow: hidden;
    z-index: 1000;
}

.gif-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

#gif-search {
    width: 80%;
    max-width: 280px;
    padding: 8px 30px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    margin-left: -10px;
    position: relative;
}

#gif-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow-y: auto;
    flex-grow: 1;
}

.uploaded-gif {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.uploaded-gif:hover {
    transform: scale(1.05);
}

#gif-back-btn {
    font-size: 22px;
    background-color: transparent;
    border-radius: 50%;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

#gif-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

#gif-clear-btn {
    position: absolute;
    top: 25px;
    right: 10px;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: none;
    z-index: 2;
}

#gif-clear-btn:hover {
    color: #333;
}

#gif-search:focus + #gif-clear-btn {
    display: block;
}



/* 하단 네비게이션 바 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: none;
    z-index: 10000;
    transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.bottom-nav.transparent {
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
}

/* 네비게이션 리스트 */
.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 리스트 (li) */
.bottom-nav ul li {
    flex: 1;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 아이콘 */
.bottom-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease-in-out, background-color 0.2s ease-in-out;
}

/* 모든 아이콘 동일 크기 */
.bottom-nav ul li a span {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
}

/* 아이콘 클릭 시 색상 변경 */
.bottom-nav ul li a:hover {
    color: #1da1f2;
}

/* 호버 */
.bottom-nav ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}




/* 모바일 검색 결과 창 */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -39px;
    width: 100vw;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

/* 중복 패딩 제거 & 높이 통일 */
#mobile-news div {
    padding: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#mobile-news {
    padding-bottom: 20px;
    padding-right: 40px;
}

#mobile-follow {
    padding-right: 40px;
}

/* 사이드바 활성화 시 */
.mobile-sidebar.active {
    display: block;
    transform: translateX(0);
}

/* 개별 아이템 높이 균일하게 유지 */
#mobile-news .content-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 60px;
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 0;
}


/* 내부 텍스트 요소도 flex 적용 */
#mobile-news .content-item > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 텍스트 줄바꿈 & 간격 균일화 */
#mobile-news .content-item strong,
#mobile-news .content-item .username {
    font-size: 16px;
    color: #14171a;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mobile-news .more-link {
    margin-top: 15px !important;
}

#mobile-follow h3 {
    margin-bottom: 10px !important;
}

/* 모바일 트렌드 & 팔로우 스타일 유지 */
#mobile-news .content-item,
#mobile-follow .follow-item {
    border-bottom: 1px solid #e1e8ed;
    padding: 15px 0;
}

/* 제목 스타일 유지 */
#mobile-news .content-item .username,
#mobile-follow .follow-item .username {
    color: #657786;
    font-size: 13.5px;
    padding-bottom: 1px;
}

#mobile-news .content-item strong,
#mobile-follow .follow-item strong {
    font-size: 16px;
    font-weight: bold;
    color: #14171a;
}

/* 실시간 트렌드 간격 조절 */
#mobile-news .description {
    margin-top: 2px;
}

/* 팔로우 버튼 스타일 */
#mobile-follow .follow-btn {
    position: absolute;
    right: 60px;
    width: 90px;
}


/* 모바일 검색 리스트 호버 */
#mobile-news .content-item:hover,
#mobile-follow .follow-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease-in-out;
    margin-left: -20px;
    margin-right: -60px;
    padding-left: 20px;
    position: relative;
}

#mobile-search .search-box {
    display: block !important;
    width: 94%;
    padding-bottom: 20px;
    margin-left: -10px;
}

#mobile-search .autocomplete-list {
    width: calc(94% - 45px);
}

#mobile-search .clear-btn {
    right: 9%;
}


.comment-image {
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 12px;
    object-fit: cover;
}





.sensitive-content {
    position: relative;
    color: white;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 8px;
}
  
  .sensitive-warning {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}
  
  .sensitive-warning p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    margin-left: 40px;
    margin-right: 40px;
}
  
  .show-content-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
}
  
  .show-content-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
  
  .sensitive-image {
    position: absolute;
    top: -11px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
  
  .hidden {
    display: none;
}
  
  
  
  
  
.quoted-post {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #f7f9fa;
    padding: 1px 12px;
    padding-bottom: 10px;
    margin-top: 10px;
}
  
.quoted-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
  
.quoted-profile-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    margin-right: 5px;
}

.quoted-user-info .inline-icon {
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: 8px;
}
  
.quoted-user-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}
  
.quoted-user-info strong {
    color: #000;
    font-weight: bold;
    margin-top: 10px;
}
  
.date-text {
    color: #657786;
    font-size: 13px;
    margin-left: 5px;
    margin-top: 7px;
}
  
.quoted-text {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

  



.modal-left img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal-left img.visible {
    opacity: 1;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: color 0.3s;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow:hover {
    color: #1da1f2;
}




/* 쇼츠 아이콘 */
.shorts {
  position: absolute;
  bottom: 32px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0px;
  background-color: rgba(15, 20, 25, 0.9);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 2;
}

.shorts-icon-img {
  width: 15px;
  height: 15px;
  display: block !important;
  margin-top: -1px !important;
  margin-left: -4px;
  opacity: 0.85;
}





/* 사라지는 애니메이션 기본 스타일 */
@keyframes noiseDisappear {
  0% {
    filter: none;
    opacity: 1;
    transform: none;
  }
  20% {
    filter: contrast(2) brightness(0.5) saturate(2);
    transform: translateX(2px);
  }
  40% {
    filter: blur(2px);
    transform: translateX(-2px);
  }
  60% {
    filter: grayscale(1) contrast(1.5);
    transform: translateX(3px);
  }
  80% {
    filter: contrast(0.5) brightness(1.2);
    transform: translateX(-3px);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.noise-remove {
  animation: noiseDisappear 1.5s ease-in-out forwards;
}





.music-player {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  font-family: sans-serif;
}

.music-player .thumb {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.music-player .thumb img {
  width: 100%;
  height: 100%;
  margin-top: -10px;
  object-fit: cover;
}

.music-player .play-overlay {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 35px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: transparent;
  opacity: 0.8;
  border-radius: 50%;
}

.music-player .thumb:hover .play-overlay {
  opacity: 1;
  border-radius: 50%;
}

.music-player .info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.music-player .source {
  font-size: 12px;
  color: gray;
  margin: 0;
}

.music-player .title {
  font-size: 14px;
  font-weight: bold;
  margin: 4px 0;
}

.music-player .artist {
  font-size: 13px;
  margin: 0;
}




/* === 반응형 디자인 === */


/* 태블릿 가로 화면 (1359px) */
@media (max-width: 1359px) {
    .body {
        transform: scale(0.95);
        transform-origin: top left;
        overflow-x: hidden;
    }

    .container {
        grid-template-columns: 300px 1fr 350px; 
        gap: 20px;
        max-width: 1500px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        width: 120px;
        padding: 10px;
        margin-left: -20px;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .sidebar ul {
        padding: 0;
        text-align: center;
    }

    .sidebar ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 13px 0;
    }

    .sidebar .text {
        display: none;
    }

    .sidebar .icon {
        font-size: 24px;
        color: #657786;
    }

    .widgets {
        right: 0px;
        width: 300px;
        position: fixed;
        padding-top: 20px;
        
    }

    .widgets p {
        font-size: 14px;
    }

    .description {
        font-size: 14px !important; 
    }

    .widgets .follow-btn {
        width: 65px;
    }
    
    .profile-container {
        margin-left: 80px;
        margin-right: 320px;
        margin-top: 0;
        width: 100%;
    }

    .post {
        gap: 10px;
    }

    .post-content img {
        width: 100%;
        height: auto;
    }

    .post-stats {
        gap: 30px;
    }

    .post-btn {
        width: 60px;
        height: 60px;
        border-radius: 60px;
        font-size: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .post-btn::before {
        content: "";
        width: 27px;
        height: 27px;
        background-image: url("img/post.png");
        background-size: contain;
        background-repeat: no-repeat;
        display: block;
    }

    .search-box input {
        width: 100%;
    }

    /* 모달 활성화 시 */
    body.modal-open .container {
        transform: none !important;
    }

    .shorts {
    bottom: 42px;
    right: 15px;
    font-size: 12px;
    padding: 5px 8px;
    }

    .shorts-icon-img {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        
    }
    
}


/* 태블릿 세로 화면 (1024px 이하) */
@media (min-width: 769px) and (max-width: 1024px) {
    .body {
        margin: 0;
        padding: 0;
    }
    
    .wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        justify-content: flex-start !important;
        overflow: hidden;
    }

    /* 모달 활성화 */
    body.modal-open .container {
        transform: none !important;
    }
    
    .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-container {
        margin-left: 100px !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0;
        transform-origin: top left;
        transform: scale(1.005);
        overflow-y: hidden;
    }

    .mobile-sidebar {
        left: 100px; /* 사이드바 너비 */
        max-width: 100% !important;
        width: 88%;
    }

    .widgets {
        display: none !important;
        transform: none !important;
    }
}

/* 모바일 화면 (768px 이하) */
@media (max-width: 768px) {
    .body {
        overflow: hidden;
    }

    .wrapper {
        display: flex;
        justify-content: flex-start;
        padding-left: 0;
        margin-left: 0;
        width: 100% !important;
        overflow: hidden;
    }
    
    .sidebar {
        display: none;
    }

    .widgets {
        display: none;
    }


    .container {
        flex-direction: column;
        padding: 0px;
    }

    .profile-container {
        width: 100%;
        margin: 0 !important;
        border-radius: 0;
        max-width: 100%;
        transform-origin: top left;
        transform: scale(1.008);
        overflow-y: hidden;
    }

    .banner img {
        height: 200px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .profile-details {
        padding-top: 50px;
    }

    .profile-tabs {
        font-size: 16px;
    }

    .profile-tabs ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        font-size: clamp(14px, 2vw, 16px);
        border-bottom: 1px solid #ddd;
        letter-spacing: -0.5px;
    }
    
    .profile-tabs li {
        list-style: none;
        cursor: pointer;
        padding: 10px 15px;
        font-size: clamp(14px, 1.8vw, 16px);
        letter-spacing: -0.5px;
    }   

    .post-footer {
        justify-content: space-around;
    }

    .search-box {
        display: none;
    }

    .box {
        padding: 15px;
        text-align: center;
    }

    .post {
        width: 100%;
        max-width: 100%;
    }

    .post-btn {
        width: 100%;
    }

    .modal-content {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .modal-left {
        flex: 1;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modal-left img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .modal-right {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    /* 🔔 */
    .notification-button {
        top: 260px;
        left: 195px;
    }

    .shorts {
        bottom: 35px;
        right: 12px;
        font-size: 11px;
        padding: 4px 7px;
    }

    .shorts-icon-img {
        width: 14px !important;
        height: 14px !important;
        display: block !important;        
    }
}



@media (min-width: 1025px) {
    .mobile-sidebar {
        display: none !important;
        transform: none !important;
    }
}




@media (max-width: 567px) {
    .quoted-profile-img {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        margin-right: 5px;
    }

    .quoted-user-info .inline-icon {
        border-radius: 50% !important;
        width: 15px !important;
        height: 15px !important;
        margin-top: 6px;
    }

    .quoted-user-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        font-size: 14px;
    }
      
    .quoted-user-info strong {
        color: #000;
        font-weight: bold;
        margin-top: 10px;
    }
      
    .date-text {
        color: #657786;
        font-size: 13px;
        margin-left: 5px;
        margin-top: 2px;
    }
      
    .quoted-text {
        font-size: 14px;
        color: #333;
        margin: 5px 0;
    }

    .shorts {
        bottom: 28px;
        right: 12px;
        font-size: 11px;
        padding: 4px 7px;
    }

    .shorts-icon-img {
        width: 14px !important;
        height: 14px !important;
        display: block !important;        
    }
}


@media (max-width: 445px) {
    .header-text p .date-text {
        display: block;
        margin-bottom: 2px;
    }

    /* 🔔 */
    .notification-button {
        top: 259px;
        left: 190px;
    }
}


/* 초소형 모바일 (최대 499px) */
@media (max-width: 499px) {
    .body {
        font-size: clamp(12px, 1.5vw, 12px);
        overflow-x: hidden;
    }

    .banner img {
        height: 200px;
    }

    .header-text p {
        font-size: 13px;
    }

    .header-text strong {
        font-size: 15px;
    }

    .comments-section h4 {
        font-size: 14px;
    }

    .profile-pic {
        width: 80px;
        height: 80px;
    }

    .profile-tabs ul {
        gap: 10px;
    }

    .profile-tabs li {
        font-size: 14px;
        overflow: hidden;
    }

    .profile-container {
        transform-origin: top left;
        transform: scale(1.015);
        overflow-y: hidden;
    }

    .post-content {
        font-size: 14px;
    }

    .post-stats {
        font-size: 13px;
        gap: 15px;
    }

    .post-stats span {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .popup-header-text strong {
        font-size: 1em;
        display: block;
        margin-bottom: 5px;
    }

    .popup-header-text .date-text {
        font-size: 0.85em;
    }

    .popup-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px;
        box-shadow: none;
        justify-content: flex-start;
        padding-top: 50px;
        position: relative;
    }

    .popup-content .close-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 20px;
        cursor: pointer;
        color: #657786;
        padding: 5px;
        border-radius: 50%;
    }

    #submit-comment {
        padding: 6px 12px;
        font-size: 14px;
        width: auto;
        height: auto;
        min-width: 80px;
    }

    .popup-icons {
        display: flex;
        gap: 1px;
        justify-content: space-between;
    }
    
    .comment-popup {
        transform: scale(0.6);
    }

    .comment {
        padding: 8px 12px;
    }

    .comment .profile-img {
        width: 32px;
        height: 32px;
    }

    .comment-content {
        font-size: 13px;
    }

    .comment-header {
        font-size: 12px;
    }

    .comment-text {
        font-size: 13px;
        line-height: 1.3;
    }

    .reply-to {
        font-size: 12px;
    }

    .highlight-user {
        font-size: 12px !important;
    }

    #preview-container {
        margin-left: 5px;
        padding-right: 10px;
    }    

    #gif-results {
        display: grid;
        gap: 10px;
    }

    .uploaded-gif {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    #gif-modal {
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    #gif-search {
        width: 100%;
        max-width: 390px;
        border: 1px solid #ccc;
        border-radius: 20px;
        font-size: 14px;
        margin-left: -10px;
        position: relative;
    }

    #gif-clear-btn {
        margin-right: -10px;
    }

    .sensitive-warning p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
        margin-left: 40px;
        margin-right: 40px;
    }
      
      .show-content-btn {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
        padding: 6px 16px;
        font-size: 12px;
        border-radius: 25px;
        cursor: pointer;
    }

}


@media (max-width: 457px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
    }

    /* 가로 스크롤 유발하는 요소 수정 */
    .post-content {
        overflow-x: hidden !important;
    }
    
}




/* 초소형 모바일 (최대 445px) */
@media (max-width: 445px) {
    .stat.stat-views .number {
        display: none;
    }

    .profile-tabs ul {
        gap: 1px;
    }

    .profile-tabs li {
        font-size: 13px;
        overflow: hidden;
    }

    .profile-container {
        transform-origin: top left;
        transform: scale(1.015);
        overflow-y: hidden;
    }

    .profile-pic {
        position: absolute;
        bottom: 174px;
        width: 70px;
        height: 70px;
    }

    .header-text p {
        font-size: 12px;
    }

    .header-text strong {
        font-size: 14px;
    }

    .profile-image {
        width: 45px;
        height: 45px;
    }
    
    .post-content {
        font-size: 13.5px;
    }

    .comments-section h4 {
        font-size: 13px;
    }

    .profile-details h2 {
        font-size: 21px;
    }

    .profile-details p.username {
        font-size: 14px;
    }

    .profile-stats strong {
        font-size: 14px;
    }
    
    .profile-stats {
        font-size: 14px;
    }

    .description2 {
        font-size: 13px;
    }

    .profile-details .description2 a {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
        vertical-align: middle;
    }

    .comment {
        padding: 6px 10px;
    }

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

    .comment-content {
        font-size: 12px;
    }

    .comment-header {
        font-size: 11px;
    }

    .comment-text {
        font-size: 12px;
        line-height: 1.2;
    }

    .reply-to {
        font-size: 11px;
    }

    .highlight-user {
        font-size: 11px !important;
    }
}

@media (max-width: 387px) {
    .profile-tabs ul {
        gap: 1px;
    }

    .profile-tabs li {
        font-size: 12px;
        overflow: hidden;
    }

    .profile-container {
        transform-origin: top left;
        transform: scale(1.015);
        overflow-y: hidden;
    }

    .bottom-nav .span {
        max-width: 16px !important;
    }

    .follow-btn {
        width: 22%;
    }

    .comment {
        padding: 6px 10px;
    }

    .comment .profile-img {
        width: 27px;
        height: 27px;
    }

    .comment-content {
        font-size: 11px;
    }

    .comment-header {
        font-size: 10px;
    }

    .comment-text {
        font-size: 11px;
        line-height: 1.2;
    }

    .reply-to {
        font-size: 10px;
    }

    .highlight-user {
        font-size: 10px !important;
    }

    .sensitive-warning p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        margin-left: 40px;
        margin-right: 40px;
    }
      
      .show-content-btn {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 25px;
        cursor: pointer;
    }


    .quoted-profile-img {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        margin-right: 5px;
    }

    .quoted-user-info .inline-icon {
        border-radius: 50% !important;
        width: 14px !important;
        height: 14px !important;
        margin-top: 7px;
    }

    .quoted-user-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        font-size: 12px;
    }
      
    .quoted-user-info strong {
        color: #000;
        font-weight: bold;
        margin-top: 10px;
    }
      
    .date-text {
        color: #657786;
        font-size: 11px;
        margin-left: 5px;
        margin-top: 2px;
    }
      
    .quoted-text {
        font-size: 12px;
        color: #333;
        margin: 5px 0;
    }

    .shorts {
        bottom: 22px;
        right: 8px;
        font-size: 9px;
        padding: 4px 7px;
    }

    .shorts-icon-img {
        width: 12px !important;
        height: 12px !important;
        display: block !important;        
    }
}

@media (max-width: 349px) {
    .quoted-profile-img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        margin-right: 1px;
    }

    .quoted-user-info .inline-icon {
        border-radius: 50% !important;
        width: 14px !important;
        height: 14px !important;
        margin-top: 7px;
    }

    .quoted-user-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        font-size: 11px;
    }
      
    .quoted-user-info strong {
        color: #000;
        font-weight: bold;
        margin-top: 10px;
    }
      
    .date-text {
        color: #657786;
        font-size: 10px;
        margin-left: 5px;
        margin-top: 2px;
    }
      
    .quoted-text {
        font-size: 11px;
        color: #333;
        margin: 5px 0;
    }
}


input[type="file"] {
    display: none !important;
    visibility: hidden;
  }
