/*
 * ------------------------------------------------
 * 통합 CSS 스타일시트 (메인, 검색, 게시판 페이지용)
 * ------------------------------------------------
 */

/* --- [공통 변수 및 리셋] --- */
:root {
    --primary: #ff6b35;
    --primary-dark: #e85d2a;
    /* 메인에서 사용 */
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-hover: #1f1f1f;
    --border: #2a2a2a;
    --text-main: #ffffff;
    --text-sub: #a0a0a0;
    --highlight-bg: #3a3a2a;
    /* 검색에서 사용 */
    --highlight-text: #e8d896;
    /* 검색에서 사용 */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --header-height: 70px;
    /* 메인에서 사용 (현재 미사용) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}


/* --- [레이아웃 구조 (Grid Layout)] --- */
.layout-container {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    /* PC: 3단 구조 */
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* --- [1. 좌측 사이드바 (Navigation)] --- */
.sidebar-left {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* 게시판/검색 페이지에서 사용 */
    overflow-y: auto;
    /* 게시판/검색 페이지에서 사용 */
}

.sidebar-left::-webkit-scrollbar {
    width: 0;
}

.logo-area {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0px;
    /* 메인 페이지의 40px에서 변경됨 */
    display: flex;
    align-items: center;
    gap: 8px;
    /* 10px에서 변경됨 */
    cursor: pointer;
    /* 검색 페이지에서 추가 */
}

/* 추가된 네비게이션 섹션 제목 */
.nav-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    /* 기존 스타일 업데이트 및 통일 */
    padding: 10px 12px;
    /* 12px 16px에서 변경 */
    border-radius: var(--radius-sm);
    /* radius-md에서 변경 */
    color: var(--text-sub);
    font-size: 14px;
    /* 메인에 없던 속성 추가 */
    font-weight: 500;
    /* 600에서 변경 */
    display: flex;
    align-items: center;
    gap: 10px;
    /* 12px에서 변경 */
    transition: 0.2s;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.nav-item.active {
    color: var(--primary);
    font-weight: 700;
    /* 메인에 없던 속성 추가 */
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* 네비게이션 서브 메뉴 (검색 페이지에서 추가) */
.sub-menu {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-item {
    font-size: 13px;
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

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

.sub-item.active {
    color: var(--primary);
    font-weight: bold;
}

/* --- [2. 중앙 메인 콘텐츠] --- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* 메인 페이지 기준 */
}

/* --- [메인 페이지 전용 스타일] --- */

/* 검색 히어로 섹션 */
.search-hero {
    background: linear-gradient(135deg, #1f1f1f, #141414);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-highlight {
    color: var(--primary);
}

.search-box-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: #000;
    border: 2px solid var(--border);
    padding: 18px 50px 18px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

/* 벤토 그리드 (창고 바로가기) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 140px);
    gap: 16px;
}

.bento-container {
    display: flex;
    flex-direction: column;
}

.bento-header {
    display: flex;
    align-items: center;
}

.bento-icon {
    font-size: 19px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #1f1f1f, #141414);
}

.bento-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bento-desc {
    font-size: 13px;
    color: var(--text-sub);
}

.bento-stat {
    margin-top: auto;
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 통합 피드 (최신 정보 & 커뮤니티) */
.feed-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.feed-card:hover {
    background-color: var(--bg-hover);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    background: #2a2a2a;
    color: var(--primary);
}

.feed-meta {
    font-size: 12px;
    color: var(--text-sub);
}

.feed-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feed-preview {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.5;
}

.feed-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-sub);
}

.feed-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* --- [검색 페이지 전용 스타일] --- */
.top-search-bar {
    /* 메인 페이지의 search-box-wrapper와 유사하나 다른 스타일 */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    /* 메인 콘텐츠 상단 여백으로 */
}

.top-search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 15px;
    outline: none;
}

.search-header {
    margin-bottom: 10px;
}

.search-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #e8e8e8;
}

.search-stats {
    color: #888;
    font-size: 14px;
}

/* 검색 탭 메뉴 */
.content-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 20px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    /* border-bottom 높이 고려 */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* 결과 목록 헤더 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.list-count {
    font-size: 14px;
    color: var(--text-sub);
}

.list-count b {
    color: var(--primary);
}

.sort-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    outline: none;
}

/* 검색 결과 카드 */
.search-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.search-card:hover {
    border-color: #5a5a5a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.card-content-wrapper {
    display: flex;
    align-items: flex-start;
}

.card-image-container {
    flex-shrink: 0;
    margin-right: 15px;
}

.card-text-content {
    flex-grow: 1;
}

.card-meta {
    margin-bottom: 5px;
}

.nearby-place-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #444;
    overflow: hidden
}

.nearby-place-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-position: center;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    opacity: 0
}

.nearby-place-image img.loaded {
    opacity: 1
}

.nearby-place-image img.error {
    display: none
}


.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title a {
    color: #9b9b9b;
    text-decoration: none;
}

.card-title a:hover {
    color: #c4c4c4;
    text-decoration: underline;
}

.card-meta {
    color: #6b6b6b;
    font-size: 13px;
    margin-bottom: 8px;
}

.card-content {
    color: #a8a8a8;
    font-size: 14px;
    line-height: 1.6;
}

.highlight {
    /* 검색 결과 하이라이트 */
    background: var(--highlight-bg);
    color: var(--highlight-text);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 섹션 헤더 (검색 페이지 하단 관련 검색어 등) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #e8e8e8;
}

.section-count {
    color: #888;
    font-size: 13px;
    margin-left: 8px;
}

.view-all {
    color: #8b8b8b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    color: #b8b8b8;
    text-decoration: underline;
}

/* 빈 결과 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}


/* --- [게시판 페이지 전용 스타일] --- */
.comm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comm-title {
    font-size: 22px;
    font-weight: 800;
}

.btn-write {
    background: var(--primary);
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-write:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* 필터 탭 (게시판에서 사용) */
.filter-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.filter-chip:hover {
    border-color: #666;
    color: #fff;
}

.filter-chip.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* 게시글 리스트 아이템 */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

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

.p-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}

.p-category {
    color: var(--primary);
    font-weight: bold;
}

.p-author {
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
}

.p-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #eee;
}

.p-preview {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

/* 게시글 연관 DB 링크 */
.linked-db {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 8px;
    width: fit-content;
    font-size: 12px;
    color: #ccc;
    transition: 0.2s;
}

.linked-db:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.p-meta-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

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

.p-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #222;
    object-fit: cover;
    flex-shrink: 0;
}

/* 더 보기 버튼 */
.load-more-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: #888;
    transition: 0.2s;
}

.load-more-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* 로딩 상태 */
.loading-state,
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-sub);
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #2a2a2a;
    border-top: 4px solid var(--primary);
    /* 색상 변경 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* --- [3. 우측 사이드바 (Widgets)] --- */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* 메인 페이지 기준 */
    position: sticky;
    top: 20px;
    height: fit-content;
    /* 검색/게시판에서 추가 */
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.widget-title {
    /* 메인 페이지와 검색/게시판 페이지 스타일 통일 */
    font-size: 16px;
    /* 15px에서 변경 */
    font-weight: 700;
    /* bold에서 변경 */
    margin-bottom: 16px;
    /* 15px에서 변경 */
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* 데스크탑: sidebar-right 표시, mobile-widget 숨김 */
.sidebar-right .widget {
    display: block;
}

.mobile-widget {
    display: none;
}

/* 모바일 (1024px 이하): sidebar-right 숨김, mobile-widget 표시 */
@media (max-width: 1024px) {
    .sidebar-right {
        display: none;
    }

    .mobile-widget {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px;
        margin: 20px 0;
    }

    /* 모바일에서 실시간 급상승 항목 스타일 최적화 */
    .mobile-widget .rank-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-widget .rank-item {
        padding: 12px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.02);
    }

    .mobile-widget .rank-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* 랭킹 리스트 (메인 페이지에서 사용) */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.rank-item:hover {
    background: var(--bg-hover);
}

.rank-num {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rank-content {
    flex: 1;
}

.rank-name {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.rank-sub {
    font-size: 11px;
    color: var(--text-sub);
}

/* 핫 키워드 클라우드 (게시판에서 사용) */
.hot-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    font-size: 12px;
    padding: 4px 10px;
    background: #222;
    border-radius: 15px;
    color: #aaa;
    cursor: pointer;
}

.keyword-tag:hover {
    background: var(--primary);
    color: #000;
}

/* 광고 배너 (검색 페이지에서 사용) */
.ad-banner {
    height: 200px;
    background: #222;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
}


/* --- [모바일/반응형 스타일] --- */

/* 모바일 전용 위젯 섹션 (메인 페이지에서 사용) */
.mobile-widget {
    display: none;
}

/* 글쓰기 FAB 버튼 (게시판 페이지에서 사용) */
.fab-write {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    z-index: 99;
}

/* 모바일 하단 탭바 (기본 숨김) */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    /* 메인에서 flex, 검색/게시판에서 space-around 통일 */
    padding: 10px 0 20px;
    /* 아이폰 하단 바 고려 */
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-sub);
    background: none;
    border: none;
    cursor: pointer;
}

.tab-item.active {
    color: var(--primary);
}

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


/* Tablet & Mobile (1024px 이하) */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
        /* 1단 구조로 변경 */
        padding: 0 0 80px 0;
        /* 하단 탭바 공간 확보 및 좌우 패딩 제거 */
        gap: 0;
        max-width: 100vw;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    /* 좌우 메뉴 숨김 */

    .mobile-tab-bar {
        display: flex;
    }

    /* 하단 탭바 표시 */

    .main-content {
        padding: 16px;
        /* 20px 16px 80px에서 변경 */
        gap: 20px;
        /* 메인 페이지의 gap을 모바일에서도 적용 */
    }

    .top-search-bar {
        margin-bottom: 0;
    }

    /* 메인 콘텐츠의 상단 패딩으로 대체 */
    .content-tabs {
        margin-bottom: 10px;
    }

    /* 메인 페이지 전용 모바일 레이아웃 */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2열 그리드 */
        grid-template-rows: auto;
    }

    .bento-item.large {
        grid-column: span 2;
        /* 모바일에서도 크게 강조 */
        grid-row: auto;
        height: 180px;
    }

    .mobile-widget {
        display: block;
        margin: 20px 0;
    }

    /* 게시판 페이지 전용 모바일 레이아웃 */
    .post-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .p-thumbnail {
        width: 100%;
        height: 160px;
    }

    .fab-write {
        display: flex;
    }

    /* 글쓰기 버튼 표시 */
}

/* 2. 메인 댓글 컨테이너 (카드 스타일) */
.comment-thread.content {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 3. 상단 책/상품 정보 영역 */
.review_layout {
    display: inline-block;
    vertical-align: top;
    margin-right: 12px;
}

.review-image-container {
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    background-size: cover;
    background-position: center;
}

.review_container {
    display: inline-block;
    vertical-align: middle;
}

.review_center {
    font-size: 13px !important;
    color: var(--text-sub) !important;
}

.review_center a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* 구분선 제거 */
.comment-thread hr {
    border: 0 !important;
    border-top: 1px solid var(--border) !important;
    margin: 15px 0 !important;
}

/* 4. 댓글 헤더 (작성자 정보) */
.comment-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

/* 작성자 닉네임 */
.comment-header span[style*="color: #4CAF50"] {
    color: var(--text-main) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* 작성 시간 */
.comment-header span[style*="color: #888"] {
    color: var(--text-sub) !important;
    font-size: 12px !important;
}

/* 수정/삭제 링크 */
.comment-header a {
    color: var(--text-sub) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    margin-left: 8px !important;
    transition: color 0.2s;
}

.comment-header a:hover {
    color: var(--text-main) !important;
    text-decoration: underline !important;
}

/* 5. 별점 (빨간 별 -> 오렌지 별) */
div[style*="color: #555"] font[style="color: red;"] {
    color: var(--primary) !important;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

/* 6. 댓글 본문 */
.user_comment {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
    margin-bottom: 15px !important;
    font-weight: 400;
}

/* 7. 버튼 컨테이너 (공감/비공감/답글) */
.vote_container {
    margin-top: 15px !important;
    gap: 2px !important;
}

/* 버튼 스타일 재정의 */
.vote_container a {
    background-color: var(--bg-hover) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-sub) !important;
    border-radius: 10px !important;
    /* 둥근 칩 스타일 */
    padding: 5px 5px !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center;
}

.vote_container a:hover {
    background-color: #333 !important;
    color: var(--text-main) !important;
    border-color: #555 !important;
}

/* 공감 숫자 등 */
.vote_container span {
    font-weight: bold;
    color: var(--primary);
}

/* 8. 대댓글 (Reply Comment) */
.reply-comment {
    background-color: rgba(255, 255, 255, 0.03) !important;
    /* 아주 연한 배경 */
    border: none !important;
    border-left: 2px solid var(--primary) !important;
    /* 왼쪽 오렌지 라인 */
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    margin: 10px 0 10px 20px !important;
    padding: 12px 15px !important;
}

/* 대댓글 헤더 */
.reply-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

/* 대댓글 작성자 프로필 이미지 */
.reply-header img {
    border: 1px solid var(--border) !important;
    width: 24px !important;
    height: 24px !important;
}

/* 대댓글 텍스트 */
.reply-content {
    font-size: 14px !important;
    color: #ccc !important;
    margin-bottom: 10px !important;
}

/* 대댓글 버튼 */
.reply-vote-container a {
    background: transparent !important;
    border: none !important;
    color: var(--text-sub) !important;
    padding: 0 !important;
    margin-right: 10px !important;
}

.reply-vote-container a:hover {
    color: var(--primary) !important;
}

/* 9. 답글 작성 폼 (Reply Form) */
.reply-form {
    background-color: var(--bg-hover) !important;
    border: 1px solid var(--border) !important;
    border-left: none !important;
    /* 기존 오렌지 보더 제거 후 재설정 */
    border-radius: var(--radius-sm) !important;
    padding: 15px !important;
    margin-top: 15px !important;
}

/* 입력창 (Textarea) */
.reply-form textarea {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 14px !important;
}

.reply-form textarea:focus {
    outline: none !important;
    border-color: var(--primary) !important;
}

/* 비밀번호 입력창 */
.reply-form input[type="password"] {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 6px !important;
}

/* 등록 버튼 (Primary) */
.reply-form button:first-of-type {
    background-color: var(--primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    transition: transform 0.2s;
}

.reply-form button:first-of-type:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* 취소 버튼 */
.reply-form button:last-of-type {
    background-color: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--text-sub) !important;
    border-radius: 20px !important;
}

.reply-form button:last-of-type:hover {
    border-color: #666 !important;
    color: #fff !important;
}

/* 기존 bottom sheet → 오른쪽 사이드 패널로 변경 */
.demo-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.demo-button {
    background: linear-gradient(135deg, #ff6b25 0%, #ff8c4a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 5px;
    transition: transform 0.2s;
}

.demo-button:hover {
    transform: translateY(-2px);
}

.demo-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.custom-notification {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid #ff6b25;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.custom-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b25, #ff8c4a, #ff6b25);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.custom-notification.closing {
    animation: slideOut 0.3s ease-in forwards;
}

.notification-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b25 0%, #ff8c4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.notification-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px 0;
}

.notification-body {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
}

.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.notification-action-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-action-btn.primary {
    background: linear-gradient(135deg, #ff6b25 0%, #ff8c4a 100%);
    color: white;
}

.notification-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 37, 0.4);
}

.notification-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.notification-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.info-box h3 {
    margin: 0 0 10px 0;
    color: #ff6b25;
}

.info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

@media (max-width:768px) {
    .custom-notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .custom-notification {
        padding: 12px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.notification-bell {
    position: relative;
    cursor: pointer;
    background: rgba(255, 107, 37, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notification-bell:hover {
    background: rgba(255, 107, 37, 0.2);
    transform: scale(1.05);
}

.notification-bell-icon {
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.notification-panel {
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #1a1b1e;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notification-panel.open {
    right: 0;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.panel-actions {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff6b25;
    color: #fff;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff6b25;
}

.notification-item.unread {
    background: rgba(255, 107, 37, 0.1);
    border-color: #ff6b25;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ff6b25;
    border-radius: 12px 0 0 12px;
}

.notification-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b25 0%, #ff8c4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.notification-title-row {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-body-row {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-time-row {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notification-delete {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

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

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    color: #94a3b8;
    font-size: 1rem;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 37, 0.5);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 37, 0.7);
}

@media (max-width:768px) {
    .notification-panel {
        max-width: 100%;
    }
}

.profile-sheet {
    position: fixed;
    top: 0;
    right: -500px;
    width: 100%;
    max-width: 350px !important;
    height: 100vh;
    background: #2c2c2c;
    border-radius: 0 16px 16px 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    transform: none;
    transition: right 0.1s ease-out;
    z-index: 9999;
    border-right: 1px solid #404040;
}

.profile-sheet.show {
    right: 0;
}

.profile-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.1s ease-out;
    z-index: 9998;
}

.profile-sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.profile-sheet-header {
    padding: 20px;
    border-bottom: 1px solid #404040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #2c2c2c;
}

.profile-sheet-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    background: #2c2c2c;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.profile-sheet-menu li {
    margin: 0;
}

.profile-sheet-menu a,
.profile-sheet-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.profile-sheet-menu a:hover,
.profile-sheet-menu button:hover {
    background-color: #404040;
}

.profile-sheet-menu .logout-btn {
    color: #ff6b6b;
}

.profile-sheet-menu .logout-btn:hover {
    background-color: #3d1a1a;
}

@media screen and (max-width:600px) {
    .profile-sheet {
        max-width: 100%;
        border-radius: 0;
    }
}

.close-button {
    background: #404040 !important;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 20px;
    transition: background-color 0.1s ease;
}

.close-button:hover {
    background: #505050;
}


.universal-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: universalModalFadeIn 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px)
}

.universal-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.universal-modal-image {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: universalImageZoomIn 0.3s ease;
    cursor: zoom-out
}

.universal-modal-close {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(39, 39, 39, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1
}

.universal-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: #ff6b6b
}

.universal-modal-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: universalInfoSlideUp 0.5s ease 0.2s both
}

.universal-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px
}

.universal-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: universalSpin 1s linear infinite
}

.universal-modal-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px
}

.universal-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: none
}

.universal-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1)
}

.universal-modal-prev {
    left: 20px
}

.universal-modal-next {
    right: 20px
}

.universal-image-modal.gallery-mode .universal-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center
}

.universal-modal-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease
}

.zoomable-image:hover {
    transform: scale(1.02)
}

@media screen and (max-width:800px) {
    .universal-modal-close {
        bottom: 30px;
        right: 15px;
        font-size: 30px;
        width: 50px;
        height: 50px
    }

    .universal-modal-content {
        padding: 10px
    }

    .universal-modal-image {
        max-width: 98%;
        max-height: 80%
    }

    .universal-modal-info {
        bottom: 10px;
        padding: 10px 20px;
        font-size: 12px;
        max-width: 90%
    }

    .universal-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 18px
    }

    .universal-modal-prev {
        left: 10px
    }

    .universal-modal-next {
        right: 10px
    }

    body {
        font-size: 15.3px
    }

    .secondtd {
        width: 100%
    }

    .editors {
        float: right;
        text-align: right
    }

    .user_comment {
        font-size: 15px
    }

    .searchbox {
        width: 220px
    }

    .layout_1 {
        float: left;
        width: 130px
    }

    .layout_2 {
        float: left
    }

    .layout_3 {
        width: 100%;
        display: block
    }

    .right-square-ad {
        display: none;
        width: 0px
    }

    #adsense_wide {
        display: none
    }

    #adsense_square {
        display: block
    }

    .inputsearch,
    #suggestions {
        width: 100%;
    }

    .profile_img {
        width: 90px
    }

    .profile_width {
        width: 100px
    }

    #youtube_box {
        width: 98%
    }

    .flex_parent {
        justify-content: flex-start !important
    }

    .mainframe {
        padding: 10px
    }

    .flex_child,
    .movie_flex_child,
    .book_flex_child {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 100px;
        min-width: 100px;
        max-width: 130px;
        height: 250px;
        font-size: 15px;
        border: 1px solid #373737;
        border-radius: 1em;
        position: relative;
        overflow: hidden
    }

    .music_flex_child {
        font-size: 15px;
        min-width: 90px;
        min-height: 250px
    }

    .list_layout_1 {
        aspect-ratio: 1;
        width: 120px;
        min-width: 100px;
        padding-right: 10px
    }

    .list-image-container {
        width: 95px;
        height: 140px
    }

    #index_mob_hide {
        display: none
    }

    #image_area {
        max-height: 600px
    }

    .bottom_nav {
        font-size: 23px
    }

    .image-container {
        height: 180px;
        width: 100%
    }

    .movie_box_text {
        min-height: 70px;
        max-height: 90px;
        padding: 6px 10px 10px
    }

    .book-image-container {
        height: 140px
    }

    .music-image-container {
        height: 100px
    }

    .review_center {
        line-height: 1.5
    }

    .logo {
        font-size: 22px
    }

    .table_row {
        display: flex;
        flex-direction: column;
        border-bottom: none
    }

    .cell {
        display: block
    }

    .hide-on-small {
        display: none
    }

    .second-row {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #303030;
        font-size: 13px;
        margin-top: -5px;
        text-align: left
    }

    .second-row .cell {
        flex: 1
    }

    .writer {
        width: 28%;
        flex: 0 0 28%
    }

    .counter {
        width: 25%;
        flex: 0 0 25%
    }

    .reply {
        width: 19%;
        flex: 0 0 19%
    }

    .wdate {
        width: 28%;
        flex: 0 0 28%
    }

    #counts {
        display: block
    }

    #lcounts {
        display: none
    }

    .index_list {
        height: 80px;
        display: list-item
    }

    :root {
        --swiper-navigation-size: 24px
    }

    .swiper-container {
        width: calc(100% - 30px)
    }

    .ui-content-item {
        min-height: 90px;
        padding: 5px 0
    }

    .ui-content-title {
        font-size: 1em;
        max-height: 40px
    }

    .ui-content-description {
        font-size: 0.9em;
        max-height: 72px
    }

    .ui-content-meta {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
    }

    .ui-content-section.news .ui-content-item {
        min-height: 70px;
        padding: 10px 0
    }

    .ui-content-section.news .ui-content-title {
        font-size: 0.95em;
        max-height: 36px
    }

    .ui-content-section.news .ui-content-description {
        font-size: 0.9em;
        max-height: 54px
    }
}


/* 한 줄 푸시 알림 섹션 */
.push-notification-compact {
    background: linear-gradient(135deg, #1a1b1e 0%, #2a2b2d 100%);
    border: 2px solid #ff6b25;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 37, 0.15);
}

.push-compact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.push-compact-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.push-compact-icon {
    font-size: 24px;
    line-height: 1;
}

.push-compact-label {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
}

.push-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.push-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.push-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.push-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a4b4d;
    transition: 0.3s;
    border-radius: 26px;
}

.push-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.push-toggle-input:checked+.push-toggle-slider {
    background: linear-gradient(135deg, #ff6b25 0%, #ff8c4a 100%);
    box-shadow: 0 0 8px rgba(255, 107, 37, 0.5);
}

.push-toggle-input:checked+.push-toggle-slider:before {
    transform: translateX(24px);
}

.push-toggle-input:disabled+.push-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.push-toggle-status {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 35px;
    text-align: left;
}

.push-toggle-input:checked+.push-toggle-slider+.push-toggle-status {
    color: #22c55e;
}

@media (max-width:768px) {
    .push-notification-compact {
        padding: 14px 16px;
        margin: 16px 0;
    }

    .push-compact-label {
        font-size: 0.9rem;
    }

    .push-compact-icon {
        font-size: 20px;
    }
}

@media (max-width:480px) {
    .push-compact-content {
        gap: 12px;
    }

    .push-compact-label {
        font-size: 0.85rem;
    }

    .push-toggle {
        width: 45px;
        height: 24px;
    }

    .push-toggle-slider:before {
        height: 18px;
        width: 18px;
    }

    .push-toggle-input:checked+.push-toggle-slider:before {
        transform: translateX(21px);
    }

    .push-toggle-status {
        font-size: 0.8rem;
        min-width: 30px;
    }
}

.fa-bars:before {
    content: "☰" !important;
    font-family: system-ui, -apple-system, sans-serif !important
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 15px
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 1/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: fadeIn .3s ease-in
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.video-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #0000004d
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .3s ease
}

.video-thumbnail.loaded video {
    opacity: 1
}

.video-thumbnail:hover.loaded video {
    opacity: .9
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    background-color: #0009;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color .3s ease, transform .3s ease;
    z-index: 2
}

.video-thumbnail:hover .play-icon {
    background-color: #000c;
    transform: translate(-50%, -50%) scale(1.1)
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.video-thumbnail.loaded .loading-indicator,
.video-thumbnail.error .loading-indicator {
    display: none
}

.video-thumbnail.error {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999
}

.video-thumbnail.error::after {
    content: "로드 실패";
    position: absolute;
    color: #999;
    font-size: 14px
}

.video-gallery-loading,
.video-gallery-error {
    padding: 40px 20px;
    text-align: center;
    color: #666
}

.video-gallery-error {
    color: #d32f2f
}

@media (max-width: 1200px) {
    .video-gallery {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px
    }

    .video-gallery-loading,
    .video-gallery-error {
        padding: 20px 10px
    }
}

.ask-form {
    background: #333;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 20px
}

#comment {
    display: block !important;
    min-height: 120px;
    width: 100%;
    box-sizing: border-box;
    position: static !important;
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: 5px;
    padding: 10px;
    font-family: inherit;
    resize: vertical
}

#comment:focus {
    border-color: #ec9f19 !important;
    outline: none;
    box-shadow: 0 0 5px #ec9f194d
}

#comment::placeholder {
    color: #aaa !important
}

#userid,
#password {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: 5px;
    min-width: 260px;
}

#userid::placeholder,
#password::placeholder {
    color: #aaa !important
}

#userid:focus,
#password:focus {
    border-color: #ec9f19 !important;
    outline: none;
    box-shadow: 0 0 3px #ec9f194d
}

select[name="optradio"] {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: 5px;
    padding: 4px 8px;
    margin-left: 10px;
    margin-right: 10px
}

select[name="optradio"]:focus {
    border-color: #ec9f19 !important;
    outline: none
}

.comment-image-upload-section {
    margin: 15px 0;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px
}

.comment-image-upload-section h5 {
    color: #ccc;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 400
}

.comment-image-upload-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.comment-image-upload-controls input[type="file"] {
    background-color: #333;
    color: #ccc;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 5px;
    font-size: 12px
}

.comment-image-upload-controls small {
    color: #888;
    font-size: 11px
}

.comment-image-previews {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.comment-image-preview-item {
    position: relative;
    display: inline-block
}

.comment-image-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #555;
    border-radius: 4px
}

.comment-image-remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center
}

.comment-image-remove-btn:hover {
    background: #f66
}

.share-to-board-section {
    margin: 10px 0;
    padding: 8px 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px
}

.share-to-board-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px
}

.share-to-board-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer
}

.share-to-board-label:hover {
    color: #fff
}

.comment-options-section {
    margin: 10px 0;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.comment-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
    flex: 1;
    min-width: 200px;
    flex: none;
}

.comment-option-label input[type="checkbox"] {
    width: 13px;
    height: 13px;
    cursor: pointer
}

.comment-option-label:hover {
    color: #fff
}

.comment-option-label.checked {
    color: #ec9f19
}

.form-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.input-group {
    display: flex;
    align-items: center;
    gap: 5px
}

.input-group label {
    color: #ccc;
    font-size: 12px;
    whitespace: nowrap
}

@media (max-width: 768px) {
    .form-controls {
        align-items: flex-end;
        gap: 8px
    }

    .input-group {
        align-items: center;
        gap: 3px
    }

    .comment-image-upload-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px
    }

    .comment-image-previews {
        gap: 5px
    }

    .comment-image-preview-item img {
        width: 60px;
        height: 60px
    }

    .comment-options-section {
        flex-direction: column;
        gap: 10px
    }

    .comment-option-label {
        min-width: 100%;
        flex: none
    }
}

/* 로딩바 숨김 */
.loading-bar {
    display: none !important;
}


/* 댓글 작성 에디터 */
.comment-editor {
    background: rgb(23, 23, 23);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 10px;
}

.comment-editor h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.comment-submit-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    gap: 15px;
}

.comment-author-input {
    border: 1px solid #626262ff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-author-input:focus {
    outline: none;
    border-color: #007bff;
}

/* 투표 컨테이너 */
.vote_container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #000000;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.vote_item2 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.vote_item2 a {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.vote_item2 a:hover {
    background-color: rgb(59, 59, 59);
}

.vote_item2:nth-child(2) {
    font-weight: bold;
    color: #28a745;
    font-size: 18px;
}

.vote_item2:nth-child(4) {
    font-weight: bold;
    color: #dc3545;
    font-size: 18px;
}

.thumbsup.upvoted {
    color: #4CAF50;
    /* 초록색 */
}

.thumbsup.not-voted {
    color: #9E9E9E;
    /* 회색 */
}

.thumbsdown.downvoted {
    color: #F44336;
    /* 빨간색 */
}

.thumbsdown.not-voted {
    color: #9E9E9E;
    /* 회색 */
}