/**
 * 채널 좌측 사이드바 스타일
 * channel_home.css에서 추출한 프로필 섹션 스타일
 */

/* 좌측 사이드바 컨테이너 */
.left-sidebar {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 프로필 섹션 */
.profile-section {
    background: #22313f;
    padding: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #34495E;
}

/* PC 레이아웃 */
.profile-pc-layout {
    display: none;
    text-align: center;
    position: relative;
}

/* PC 설정 아이콘 */
.pc-settings-icon {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 20px;
}

.pc-settings-icon a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.pc-settings-icon a:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* 인증 배지 스타일 */
.verified-badge-custom {
    display: inline-block !important;
    padding: 2px 6px !important;
    background: #1c1c1c !important;
    color: #F64747 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: 1px solid #F64747 !important;
    border-radius: 4px !important;
    margin-right: 6px !important;
    white-space: nowrap !important;
    line-height: normal !important;
    vertical-align: middle !important;
    animation: verifiedGlow 3s ease-in-out infinite !important;
}

/* 인증 배지 애니메이션 */
@keyframes verifiedGlow {
    0%, 100% {
        box-shadow: 0 0 2px rgba(246, 71, 71, 0.5);
    }
    50% {
        box-shadow: 0 0 8px rgba(246, 71, 71, 0.8), 0 0 12px rgba(246, 71, 71, 0.4);
    }
}

/* 좌측 프로필 영역 */
.channel-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.profile-card {
    background: #22313F;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #34495E;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #34495E;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fefad4;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    border: 3px solid #2C3E50;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    color: #fefad4;
    margin-bottom: 5px;
}

.profile-handle {
    color: #e2fdf7;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #34495E;
    border-bottom: 1px solid #34495E;
    margin-bottom: 15px;
}

.profile-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: transparent;
    color: #e2fdf7;
    border: 1px solid #34495E;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 0 15px 0;
}

.profile-like-btn:hover {
    background: #34495E;
    color: #fefad4;
    border-color: #F64747;
}

.profile-like-btn.liked {
    background: #F64747;
    color: white;
    border-color: #F64747;
}

.profile-like-btn.liked:hover {
    background: #d63939;
    border-color: #d63939;
}

/* 프로필 아바타 */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #34495E;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* 프로필 이름 및 핸들 */
.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.profile-handle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    cursor: pointer;
}

.profile-handle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.intro-title {
    border-bottom: 3px dashed #22313F;
    padding-bottom: 10px;
}

.intro-title a {
    color: #fefad4;
    text-decoration: none;
}

.stat-item {
    text-align: center;
}

.stat-count {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fefad4;
}

.stat-label {
    font-size: 12px;
    color: #e2fdf7;
    opacity: 0.7;
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background: #F64747;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background: #d63939;
    transform: translateY(-1px);
}

.subscribe-btn.subscribed {
    background: #34495E;
}

.profile-intro {
    background: #2C3E50;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.intro-title {
    font-size: 14px;
    font-weight: bold;
    color: #fefad4;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 14px;
    color: #e2fdf7;
    line-height: 1.6;
    text-align: left;
}

.profile-links {
    margin-top: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #2C3E50;
    border-radius: 5px;
    margin-bottom: 8px;
    color: #e2fdf7;
    text-decoration: none;
    transition: all 0.3s;
    overflow: hidden;
}

.link-item:hover {
    background: #34495E;
    color: #F64747;
}

.link-item span:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-left: 10px;
}

/* 계급 표시 */
.profile-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    display: inline-flex;
}

.rank-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.rank-name {
    font-size: 13px;
    color: #fefad4;
    font-weight: 500;
}

/* 좋아요 버튼 */
.profile-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.profile-like-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.profile-like-btn.liked {
    background: rgba(246, 71, 71, 0.2);
    border-color: #F64747;
}

/* 통계 */
.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-count {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 구독 버튼 */
.subscribe-btn {
    width: 100%;
    padding: 12px;
    background: #F64747;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-btn:hover {
    background: #d73a3a;
    transform: translateY(-1px);
}

.subscribe-btn.subscribed {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 소개글 */
.profile-intro {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    word-break: break-word;
}

/* 링크들 */
.profile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 메뉴 섹션 */
.menu-section {
    background: #2C3E50;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-item.active {
    background: rgba(246, 71, 71, 0.2);
    color: #F64747;
}

.menu-icon {
    font-size: 20px;
}

.menu-text {
    font-size: 15px;
    font-weight: 500;
}

/* 모바일 레이아웃 */
.profile-mobile-layout {
    display: block;
}

.mobile-cover-image {
    height: 150px;
    background: linear-gradient(135deg, #F64747 0%, #d63939 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.mobile-cover-image.default-cover {
    background: linear-gradient(135deg, #F64747 0%, #d63939 100%);
}

.mobile-settings-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-settings-icon a {
    color: #fff;
    text-decoration: none;
}

.mobile-like-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
}

.mobile-like-icon.liked {
    background: rgba(246, 71, 71, 0.8);
}

.mobile-profile-header {
    padding: 0 15px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.profile-main-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.mobile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #34495E;
    background-size: cover;
    background-position: center;
    border: 4px solid #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    position: relative;
}

.subscriber-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #F64747;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #2C3E50;
}

.profile-text-info {
    flex: 1;
    padding-top: 40px;
}

.mobile-profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}


.mobile-profile-handle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    cursor: pointer;
}

.mobile-rank-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
}

.mobile-rank-info .rank-icon {
    width: 16px;
    height: 16px;
}

.mobile-rank-info .rank-name {
    font-size: 12px;
    color: #fefad4;
}

.mobile-mini-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.mini-stat strong {
    color: #fff;
    font-weight: 600;
}

.mobile-profile-info {
    padding: 15px;
}

.mobile-button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.mobile-write-btn,
.mobile-follow-btn,
.mobile-subscribe-btn {
    flex: 1;
    padding: 8px 12px;
    background: #F64747;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-follow-btn.following,
.mobile-subscribe-btn.subscribed {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-message-btn,
.mobile-tip-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-bio {
    margin-bottom: 15px;
}

.mobile-bio p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.mobile-link-chip:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 후원 위젯 - 차별화된 디자인 */
.support-widget {
    background: #22313f;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #34495E;
}

.support-box {
    position: relative;
}

.support-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 38px;
}

.support-input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}

.support-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    padding: 0 12px;
    transition: color 0.3s ease;
}

.support-input-wrapper:focus-within .support-icon {
    color: rgba(255, 255, 255, 0.6);
}

.support-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    padding: 0 8px;
    min-width: 0;
    height: 100%;
    letter-spacing: 0.5px;
}

.support-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* 숫자 입력 스피너 제거 */
.support-input::-webkit-inner-spin-button,
.support-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.support-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.support-submit-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 500;
    white-space: nowrap;
    height: 100%;
    margin: 0;
    border-radius: 0 19px 19px 0;
}

.support-submit-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* 검색 위젯 */
.search-widget {
    margin-bottom: 20px;
    background: #22313f;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #34495E;
}

/* 좌측 사이드바 내부의 검색 위젯 - 마진 없음 */
.left-sidebar .search-widget,
.left-sidebar .search-widget.sidebar-search-widget {
    margin-bottom: 0 !important;
}

/* 다른 곳에서 사용되는 검색 위젯 - 마진 있음 */
body .search-widget.main-search-widget {
    margin-bottom: 20px !important;
}

.search-box {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 38px;
}

.search-input-wrapper:focus-within {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.search-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    padding: 0 12px;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: rgba(255, 255, 255, 0.6);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    outline: none;
    padding: 0 5px;
    min-width: 0;
    height: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 400;
    white-space: nowrap;
    height: 100%;
    margin: 0;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

/* 트렌딩 태그 */
.trending-tags {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trending-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trending-tag {
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* 스크롤 업 버튼 */
.scroll-to-top-btn {
    position: fixed;
    bottom: 60px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: rgba(34, 49, 63, 0.9);
    border: 1px solid #f64747;
    border-radius: 50%;
    color: #f64747;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.scroll-to-top-btn:active {
    transform: scale(0.95);
}

.scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* 모바일 플로팅 프로필 버튼 */
.mobile-floating-menu {
    position: fixed;
    bottom: 130px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: rgba(34, 49, 63, 0.95);
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 999;
    cursor: pointer;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite, subtlePulse 3s ease-in-out infinite;
}

/* 애니메이션 없는 상태 (이미 클릭한 채널) */
.mobile-floating-menu.no-animation {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35),
                    0 0 0 8px rgba(255, 255, 255, 0.05),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.mobile-floating-menu:hover {
    transform: scale(1.08);
    background: rgba(44, 62, 80, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation-play-state: paused;
}

.mobile-floating-menu.no-animation:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mobile-floating-menu:active {
    transform: scale(0.95);
}

/* 플로팅 아바타 */
.floating-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 플로팅 배지 */
.floating-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    border: 2px solid rgba(34, 49, 63, 0.95);
    pointer-events: none;
}

.floating-badge.following {
    background: #4CAF50;
}

/* 모바일 추가 위젯 사이드바 - 하단 시트 스타일 */
.mobile-extra-sidebar {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85vh;
    max-height: 85vh;
    background: #22313f;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-extra-sidebar.active {
    transform: translateY(0);
}

.mobile-extra-sidebar .mobile-sidebar-header {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 22px 20px;
    position: relative;
}

/* 드래그 핸들 */
.mobile-extra-sidebar .mobile-sidebar-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-extra-sidebar .mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 30px;
}

/* 스크롤바 스타일링 */
.mobile-extra-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-extra-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-extra-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mobile-extra-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 모바일 사이드바 */
.mobile-sidebar {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #2C3E50 0%, #22313f 100%);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7);
}

.mobile-sidebar.active {
    left: 0;
}

/* 스크롤바 스타일링 */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-top: 25px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.mobile-sidebar-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.close-sidebar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.close-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

/* 모바일 하단 시트 내부 스타일 조정 */
.mobile-extra-sidebar .profile-section {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1b2732 !important;
    padding: 20px;
    margin-bottom: 20px;
}

.mobile-extra-sidebar .support-widget,
.mobile-extra-sidebar .search-widget,
.mobile-extra-sidebar .mobile-search-widget {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 20px 0;
    background: rgba(0, 0, 0, 0.2);
    display: block !important; /* 강제로 표시 */
}

/* 모바일 모달 내 검색 위젯 추가 스타일 */
.mobile-search-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-extra-sidebar .mobile-search-widget .search-box {
    margin: 0;
    padding: 15px;
}

.mobile-extra-sidebar .sidebar-banner {
    background: #1b2732 !important;
    border-radius: 12px !important;
    margin: 0 0 20px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-extra-sidebar .sidebar-banner img{
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* 모바일 사이드바 내부 프로필 카드 조정 */
.mobile-extra-sidebar .mobile-compact-header {
    padding: 0;
}

/* 모바일 모달 내부 설정 버튼 위치 조정 */
.mobile-extra-sidebar .profile-section {
    position: relative;
}

.mobile-extra-sidebar .mobile-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    padding-right: 40px; /* 설정 버튼 공간 확보 */
}

.mobile-extra-sidebar .mobile-channel-name {
    margin: 0;
    flex: 1;
}

.mobile-extra-sidebar .mobile-settings-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    font-size: 20px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    transition: background 0.2s;
    z-index: 1;
}

.mobile-extra-sidebar .mobile-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-extra-sidebar .mobile-actions {
    padding: 0 0 15px 0;
}

.mobile-extra-sidebar .mobile-bio-section {
    padding: 0 0 15px 0;
}

.mobile-extra-sidebar .mobile-external-links {
    padding: 0 0 15px 0;
}

/* 반응형 - PC에서 보이는 것들 */
@media (min-width: 768px) {
    .profile-mobile-layout {
        display: none;
    }
    
    .profile-pc-layout {
        display: block;
    }
    
    .mobile-floating-menu {
        display: none !important;
    }
    
    .scroll-to-top-btn {
        display: none !important;
    }
    
    .mobile-extra-sidebar {
        display: none !important;
    }
    
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    .mobile-sidebar-header {
        display: none;
    }
    
    /* PC에서만 보이는 요소들 */
    .desktop-only {
        display: block;
    }
}

/* 반응형 - 모바일에서 보이는 것들 */
@media (max-width: 767px) {
    /* 모바일 플로팅 버튼 표시 */
    .mobile-floating-menu {
        display: flex !important;
    }
    
    /* 스크롤 버튼 초기 숨김 (JS로 제어) */
    .scroll-to-top-btn {
        display: flex;
    }
    
    /* 모바일 사이드바 초기화 */
    .mobile-extra-sidebar {
        display: flex !important;
    }
    
    .mobile-sidebar-overlay {
        display: block;
    }
    
    /* PC 전용 요소 숨김 */
    .desktop-only {
        display: none !important;
    }
    
    .left-sidebar {
        max-width: 100%;
    }
    
    .search-widget {
        padding: 12px;
    }
    
    .support-widget {
        padding: 14px;
    }
    
    .search-input-wrapper {
        height: 34px;
        border-radius: 17px;
    }
    
    .support-input-wrapper {
        height: 36px;
        border-radius: 8px;
    }
    
    .search-icon {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .support-icon {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .search-input,
    .support-input {
        font-size: 12px;
    }
    
    .search-btn {
        padding: 0 12px;
        font-size: 11px;
    }
    
    .support-submit-btn {
        padding: 0 14px;
        font-size: 11px;
        border-radius: 0 7px 7px 0;
    }
    
    .support-widget::before {
        animation-duration: 4s;
    }
    
    .trending-tags {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .trending-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .trending-tag {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 10px;
    }
    
    .menu-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #2C3E50;
        border-radius: 12px 12px 0 0;
        padding: 5px;
        display: flex;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .menu-item {
        flex-direction: column;
        gap: 5px;
        padding: 8px 5px;
        flex: 1;
    }
    
    .menu-text {
        font-size: 11px;
    }
}

/* ==========================================
   모바일 플로팅 버튼 & 추가 사이드바 스타일
   ========================================== */

/* 플로팅 프로필 버튼 */
.mobile-floating-menu {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #F64747;
    box-shadow: 0 4px 12px rgba(246, 71, 71, 0.3);
    cursor: pointer;
    z-index: 9997;
    padding: 0;
    display: none; /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .mobile-floating-menu {
        display: flex;
    }
}

.mobile-floating-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(246, 71, 71, 0.4);
}

.mobile-floating-menu:active {
    transform: scale(0.95);
}

/* 플로팅 버튼 내 아바타 */
.floating-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

/* 팔로잉 배지 */
.floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
}

/* 펄스 애니메이션 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(246, 71, 71, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(246, 71, 71, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(246, 71, 71, 0.3);
    }
}

/* 애니메이션 제거 클래스 */
.mobile-floating-menu.no-animation {
    animation: none;
}

/* 스크롤 투 탑 버튼 */
.scroll-to-top-btn {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: rgba(34, 49, 63, 0.9);
    border: 1px solid #f64747;
    border-radius: 50%;
    color: #f64747;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scroll-to-top-btn.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-2px);
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .scroll-to-top-btn.visible {
        display: flex;
    }
}

/* 모바일 추가 사이드바 - 하단 모달 스타일 */
.mobile-extra-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh; /* 화면의 85% 높이까지만 */
    background: #22313F;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%); /* 초기 상태: 화면 아래로 */
}

.mobile-extra-sidebar.active {
    transform: translateY(0); /* active 상태: 화면에 표시 */
}

/* 사이드바 헤더 */
.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #1b2732;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

/* 드래그 핸들 추가 */
.mobile-sidebar-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* 닫기 버튼 */
.close-sidebar-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-sidebar-btn:hover {
    color: #fff;
}

/* 사이드바 콘텐츠 */
.mobile-sidebar-content {
    padding: 20px;
}

.mobile-sidebar-content .profile-section {
    margin-bottom: 20px;
}

/* 모바일 사이드바 오버레이 */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* PC에서는 모바일 전용 요소 숨기기 */
@media (min-width: 769px) {
    .mobile-floating-menu,
    .scroll-to-top-btn,
    .mobile-extra-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}