/* ...기존 내용 위에 추가적인 트렌드 관련 스타일 추가... */
/* 디자인 토큰 설정 (기존) */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --neon-green: #39FF14;
    --neon-purple: #9D00FF;
    --neon-yellow: #FFFF00;
    --neon-red: #FF003C;
    --neon-orange: #FF4500;
    --neon-orange-dim: rgba(255, 69, 0, 0.5);
    
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-main); line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
.app-container { max-width: 1400px; margin: 0 auto; padding: 2rem; position: relative; } /* 넓게 표시를 위해 width 1400px 증가 */

/* 공통 유틸리티 */
.text-neon-green { color: var(--neon-green); text-shadow: 0 0 8px rgba(57, 255, 20, 0.5); }
.text-neon-purple { color: var(--neon-purple); text-shadow: 0 0 8px rgba(157, 0, 255, 0.5); }
.text-neon-yellow { color: var(--neon-yellow); }
.text-neon-orange { color: var(--neon-orange); text-shadow: 0 0 8px rgba(255, 69, 0, 0.5); }
.font-bold { font-weight: 700; }
.disable { display: none !important; }

/* 유리 질감 카드 */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 헤더 영역 */
.hero { text-align: center; padding: 2rem 0 2rem; position: relative; }
.logo-wrapper { position: relative; display: inline-block; margin-bottom: 0.5rem; }
.logo-text { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; position: relative; z-index: 2; cursor: pointer; }
.neon-orb { position: absolute; width: 60px; height: 60px; border-radius: 50%; filter: blur(30px); z-index: 1; opacity: 0.6; }
.neon-orb.green { background: var(--neon-green); top: 0; left: -20px; }
.neon-orb.purple { background: var(--neon-purple); bottom: 0; right: -20px; }
.subtitle { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; }

/* 검색 바 영역 */
.search-section { display: flex; justify-content: center; margin-bottom: 2rem; }
.search-box { display: flex; justify-content: space-between; width: 100%; max-width: 800px; background: rgba(255,255,255,0.05); border: 2px solid var(--border-glass); border-radius: 50px; padding: 8px; transition: all 0.3s ease; }
.search-box:focus-within { border-color: var(--neon-purple); box-shadow: 0 0 20px rgba(157, 0, 255, 0.3); }
.search-box input { background: transparent; border: none; color: #fff; font-size: 1.1rem; padding: 0 24px; width: 100%; outline: none; font-family: inherit; }
.search-box input::placeholder { color: #555; }
.neon-btn { background: rgba(57, 255, 20, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); box-shadow: 0 0 10px rgba(57, 255, 20, 0.2), inset 0 0 10px rgba(57, 255, 20, 0.1); padding: 12px 32px; border-radius: 40px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; font-family: inherit; white-space: nowrap; }
.neon-btn:hover { background: var(--neon-green); color: #000; box-shadow: 0 0 20px var(--neon-green); }
.neon-btn.small { padding: 8px 16px; font-size: 0.95rem; }

/* 분석 버튼 특화 네온 펄스 애니메이션 */
#analyzeBtn { animation: neonPulseBtn 1.5s infinite alternate ease-in-out; }
@keyframes neonPulseBtn {
    from { box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), inset 0 0 10px rgba(57, 255, 20, 0.1); border-color: rgba(57, 255, 20, 0.5); }
    to { box-shadow: 0 0 25px rgba(57, 255, 20, 0.8), 0 0 10px rgba(57, 255, 20, 0.5), inset 0 0 15px rgba(57, 255, 20, 0.4); border-color: var(--neon-green); }
}

/* ---------------------------------
   트렌드 대시보드 뷰 스타일
----------------------------------*/
.trend-dashboard {
    animation: fadeIn 0.8s ease forwards;
}

/* 시간 필터(탭) */
.filter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.tab-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* 3칼럼 그리드 */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem; /* 충분한 여백 확보 */
}

/* 커스텀 아이콘 스프라이트 설정 */
.custom-icon {
    display: inline-block;
    width: 65px; 
    height: 65px;
    background-image: url('new_icons_v2.png?v=2'); /* 새로운 에셋 렌더링을 위한 캐시버스트 */
    background-size: 300% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    /* 새 이미지는 자체 투명도를 가지므로 mix-blend-mode 제거 */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); /* 힙한 드롭섀도우 다시 추가 */
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.icon-rocket { background-position: left center; }
.icon-rocket:hover { filter: drop-shadow(0 0 35px var(--neon-orange)); transform: scale(1.1); }
.icon-bulb { background-position: center center; }
.icon-thumb { background-position: right center; }

.trend-col {
    display: flex;
    flex-direction: column;
}

.col-header {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* 넓고 시원한 간격 확보 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* 테마별 카드 테두리 & 그라데이션 포인트 */
.trend-col.theme-orange { border: 1px solid rgba(255, 69, 0, 0.3); background: linear-gradient(180deg, rgba(255, 69, 0, 0.05) 0%, rgba(255,255,255,0.02) 100%); }
.trend-col.theme-green { border: 1px solid rgba(57, 255, 20, 0.2); background: linear-gradient(180deg, rgba(57, 255, 20, 0.03) 0%, rgba(255,255,255,0.02) 100%); }
.trend-col.theme-purple { border: 1px solid rgba(157, 0, 255, 0.2); background: linear-gradient(180deg, rgba(157, 0, 255, 0.03) 0%, rgba(255,255,255,0.02) 100%); }
.trend-col.theme-orange .col-header { text-shadow: 0 0 15px rgba(255, 69, 0, 0.7); }
.trend-col.theme-green .col-header { text-shadow: 0 0 15px rgba(57, 255, 20, 0.6); }
.trend-col.theme-purple .col-header { text-shadow: 0 0 15px rgba(157, 0, 255, 0.6); }

/* 오렌지 테마 랭킹 강조 클래스 */
.theme-orange .rank-1-highlight .rank-num,
.theme-orange .rank-1-highlight .metric-label {
    color: var(--neon-orange);
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
}
.theme-orange .rank-1-highlight .item-title,
.theme-orange .rank-1-highlight .item-channel {
    color: var(--neon-orange);
}
.theme-orange .rank-1-highlight .mini-gauge .fill {
    background: var(--neon-orange) !important;
    box-shadow: 0 0 10px var(--neon-orange);
}

.theme-orange .rank-dimmed .rank-num,
.theme-orange .rank-dimmed .metric-label,
.theme-orange .rank-dimmed .item-channel {
    color: var(--neon-orange-dim);
}
.theme-orange .rank-dimmed .item-title {
    color: rgba(255, 170, 130, 0.9);
}
.theme-orange .rank-dimmed .mini-gauge .fill {
    background: var(--neon-orange-dim) !important;
    box-shadow: none;
}

/* 트렌드 리스트 아이템 */
.trend-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.trend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
    cursor: pointer;
}
.trend-item:hover { transform: translateX(8px); }

.rank-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    min-width: 45px;
    text-align: center;
    color: var(--text-secondary); /* 기본은 회색 */
    opacity: 0.8;
}

.item-thumb {
    width: 72px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 4px;
    background-color: rgba(255,255,255,0.05); /* 썸네일 로딩 전 스켈레톤 컬러 */
}

.item-info { flex: 1; overflow: hidden; min-width: 0; }

.item-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-channel {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.item-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.mini-gauge {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-left: 12px;
    overflow: hidden;
}
.mini-gauge .fill { height: 100%; border-radius: 4px; }

/* ---------------------------------
   기존 대시보드(분석 결과) 스타일 (유지)
----------------------------------*/
.dashboard { animation: fadeIn 0.8s ease forwards; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.video-preview { display: flex; gap: 1rem; align-items: center; }
.video-thumbnail { width: 120px; height: 68px; background: linear-gradient(45deg, #222, #444); border-radius: 8px; position: relative; overflow: hidden; }
.video-thumbnail::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: skeleton 1.5s infinite; }
@keyframes skeleton { 100% { left: 200%; } }
.video-info h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.meta-data { color: var(--text-secondary); font-size: 0.9rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.metric-card { display: flex; flex-direction: column; min-height: 220px; padding: 1.5rem; }
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }
.card-subdesc { color: rgba(161, 161, 170, 0.7); font-size: 0.78rem; margin-bottom: 1.2rem; font-style: italic; line-height: 1.4; }

/* ===== 툴팁 시스템 ===== */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-style: normal;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: help;
    transition: all 0.2s ease;
    line-height: 1;
}
.tooltip-icon:hover {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.3);
}
.tooltip-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 280px;
    padding: 12px 14px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.tooltip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 10, 0.95);
}
.tooltip-wrap:hover .tooltip-popup,
.tooltip-wrap.active .tooltip-popup {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.gauge-container { margin-top: auto; }
.gauge-bar { width: 100%; height: 12px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.gauge-fill { height: 100%; border-radius: 10px; transform-origin: left; animation: fillGauge 1.5s ease-out forwards; }
@keyframes fillGauge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gauge-labels { display: flex; justify-content: space-between; font-size: 0.9rem; }
.chart-container { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; }
.pie-chart { width: 100px; height: 100px; border-radius: 50%; background: conic-gradient(var(--neon-green) 0% 65%, var(--neon-purple) 65% 90%, var(--neon-red) 90% 100%); position: relative; box-shadow: 0 0 20px rgba(255,255,255,0.05); animation: rotateIn 1s ease-out; flex-shrink: 0; }
.pie-chart::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 55px; height: 55px; background: var(--bg-dark); border-radius: 50%; }
@keyframes rotateIn { from { transform: rotate(-90deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
.chart-legend { display: flex; flex-direction: column; gap: 0.6rem; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.legend-item span[id] { display: inline-block; min-width: 24px; text-align: right; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.color-green { background: var(--neon-green); box-shadow: 0 0 5px var(--neon-green); }
.color-purple { background: var(--neon-purple); box-shadow: 0 0 5px var(--neon-purple); }
.color-red { background: var(--neon-red); box-shadow: 0 0 5px var(--neon-red); }

/* 감정 스펙트럼 2분할 레이아웃 */
.emotion-layout {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    align-items: stretch;
}
.emotion-chart-side {
    flex-shrink: 0;
}
.sentiment-quotes {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--border-glass);
    padding-left: 1rem;
    justify-content: center;
}
.sentiment-quote-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.82rem;
    line-height: 1.4;
}
.sentiment-quote-item .sq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.sentiment-quote-item .sq-label {
    font-weight: 800;
    width: 44px;
    min-width: 44px;
    flex-shrink: 0;
    text-align: center;
}
.sentiment-quote-item .sq-text {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    font-style: italic;
}
/* 감정 항목 등장 애니메이션 */
.sentiment-quote-item {
    animation: sqFadeIn 0.4s ease forwards;
    opacity: 0;
}
.sentiment-quote-item:nth-child(1) { animation-delay: 0.1s; }
.sentiment-quote-item:nth-child(2) { animation-delay: 0.2s; }
.sentiment-quote-item:nth-child(3) { animation-delay: 0.3s; }
.sentiment-quote-item:nth-child(4) { animation-delay: 0.4s; }
@keyframes sqFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 항목이 적을 때 (1개) 중앙 정렬 + 확대 모드 */
.sentiment-quotes.sq-centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}
.sentiment-quote-item.sq-expanded {
    font-size: 0.95rem;
    gap: 10px;
    padding: 6px 0;
}
.sentiment-quote-item.sq-expanded .sq-text {
    -webkit-line-clamp: 4;
    font-size: 0.92rem;
    line-height: 1.5;
}
.sentiment-quote-item.sq-expanded .sq-label {
    font-size: 0.95rem;
}

/* 빈 상태일 때 보더 제거 */
.sentiment-quotes.sq-empty {
    border-left: none;
    min-height: unset;
}
.solution-card { grid-column: span 2; border: 1px solid rgba(57, 255, 20, 0.3); background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(57,255,20,0.05)); }
.solution-content { background: rgba(0,0,0,0.4); padding: 1.5rem; border-radius: 12px; line-height: 1.8; color: #e2e8f0; border-left: 4px solid var(--neon-green); }

/* ===== 성과 벤치마크 카드 ===== */
.benchmark-card { grid-column: span 2; border: 1px solid rgba(157, 0, 255, 0.3); background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(157,0,255,0.05)); }
.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
}
.bench-item {
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bench-item .bench-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bench-item .bench-values {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}
.bench-item .bench-current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(157, 0, 255, 0.4);
}
.bench-item .bench-avg {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.bench-item .bench-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.bench-item .bench-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--neon-purple);
    transition: width 1s ease-out;
    box-shadow: 0 0 6px rgba(157, 0, 255, 0.5);
}
.bench-item .bench-diff {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}
.bench-diff.positive { color: var(--neon-green); }
.bench-diff.negative { color: var(--neon-red); }

/* ===== 시청자 페르소나 카드 ===== */
.persona-card {
    border: 1px solid rgba(157, 0, 255, 0.25);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(157,0,255,0.04));
}
.persona-content {
    margin-top: 0.5rem;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--neon-purple);
}
.persona-type {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(157, 0, 255, 0.4);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.persona-desc {
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ===== 골든 모먼트 카드 ===== */
.golden-card {
    border: 1px solid rgba(255, 69, 0, 0.3);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,69,0,0.04));
}
.golden-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}
.golden-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    transition: all 0.25s ease;
    border-left: 3px solid rgba(255, 69, 0, 0.5);
    animation: gmFadeIn 0.5s ease forwards;
    opacity: 0;
}
.golden-item:nth-child(1) { animation-delay: 0.15s; }
.golden-item:nth-child(2) { animation-delay: 0.3s; }
.golden-item:nth-child(3) { animation-delay: 0.45s; }
@keyframes gmFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.golden-item:hover {
    background: rgba(255, 69, 0, 0.08);
    transform: translateX(4px);
}
.gm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--neon-orange);
    text-shadow: 0 0 6px rgba(255, 69, 0, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.gm-badge:hover {
    background: var(--neon-orange);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
    text-shadow: none;
}
.gm-reason {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
    font-weight: 500;
}
.gm-fire {
    font-size: 1rem;
    flex-shrink: 0;
}

/* AI 분석 결과 포맷팅 클래스 */
.ai-block {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.ai-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.ai-subtitle {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.ai-block p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    word-break: keep-all;
}

/* Skeleton UI for Lists */
.skeleton-box {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
@keyframes skeleton-pulse {
    0% { background: rgba(255,255,255,0.06); }
    50% { background: rgba(255,255,255,0.15); }
    100% { background: rgba(255,255,255,0.06); }
}
.trend-item.skeleton {
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    pointer-events: none;
}
.skeleton .skeleton-rank { width: 30px; height: 36px; border-radius: 6px; flex-shrink: 0; margin-right: 15px;}
.skeleton .skeleton-content { flex: 1; display:flex; flex-direction:column; gap:8px;}
.skeleton .skeleton-title { width: 85%; height: 16px; margin-bottom:4px; }
.skeleton .skeleton-channel { width: 45%; height: 12px; }
.skeleton .skeleton-metric { width: 100%; height: 12px; border-radius: 10px; margin-top: 6px;}

.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.3); border-top-color: #000; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 반응형을 위한 브레이크포인트 업데이트 */
@media (max-width: 1024px) {
    .trending-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .metrics-grid { grid-template-columns: 1fr; }
    .solution-card { grid-column: span 1; }
    .logo-text { font-size: 2.5rem; }
}

/* 베스트 댓글 위젯 스타일 */
.best-comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.comment-item {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--neon-purple);
    transition: background 0.2s ease;
}
.comment-item:hover {
    background: rgba(255,255,255,0.06);
}
.comment-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-color: #333;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
}
.comment-author {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comment-likes {
    color: var(--neon-purple);
    font-size: 0.75rem;
    background: rgba(157, 0, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}
.comment-text {
    color: var(--text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}
