:root {
    --bg-color: #0b0e11;
    --card-bg: #181a20;
    --border-color: #2b3139;
    --point-color: #f0b90b;
    --text-main: #eaecef;
    --text-dim: #848e9c;
    --accent-glow: rgba(240, 185, 11, 0.15);
}

/* 로딩 애니메이션 프로그레스 바 */
#loader-bar {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--point-color);
    width: 0; transition: width 0.4s ease; z-index: 9999; box-shadow: 0 0 10px var(--point-color);
}

/* 초기 페이드인 애니메이션 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Pretendard', -apple-system, sans-serif;
    margin: 0; padding:0px;
}

.container { max-width: 100%; margin: 40px 50px; }

/* 헤더 스타일 강화 */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0 25px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.header-title-area { display: flex; align-items: center; gap: 15px; }
.live-indicator {
    display: flex; align-items: center; gap: 6px; font-size: 0.75rem;
    color: var(--point-color); font-weight: bold; background: rgba(240, 185, 11, 0.1);
    padding: 4px 10px; border-radius: 50px; border: 1px solid rgba(240, 185, 11, 0.2);
}
.dot { width: 8px; height: 8px; background: var(--point-color); border-radius: 50%; animation: pulse 1.5s infinite; }

.search-area { display: flex; gap: 8px; }
.search-input {
    background: #1e2329; border: 1px solid var(--border-color); color: white;
    padding: 10px 18px; border-radius: 4px; outline: none; width: 180px;
    transition: all 0.3s;
}
.search-input:focus { border-color: var(--point-color); box-shadow: 0 0 10px var(--accent-glow); }
.search-btn {
    background: var(--point-color); color: #0b0e11; border: none;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}
.search-btn:hover { background: #fcd535; transform: translateY(-1px); }

/* 상단 전광판 (높이 130px 유지) */
.top-ticker {
    background: var(--card-bg); border: 1px solid var(--point-color); border-radius: 4px;
    margin-bottom: 25px; overflow: hidden; height: 130px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.7s ease-out 0.1s both;
    padding:15px 0 0 20px;
}

/* 퀵 링크 버튼 스타일 */
.nav-links { 
    margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 10px; 
    animation: fadeInUp 0.7s ease-out 0.2s both;
}
.nav-links a {
    text-decoration: none; color: var(--text-dim); background: #2b3139;
    padding: 8px 18px; border-radius: 4px; font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s; border: 1px solid transparent;
}
.nav-links a:hover { color: white; background: #3c444e; border-color: var(--text-dim); }
.nav-links a.active { background: var(--point-color); color: #0b0e11; border-color: var(--point-color); box-shadow: 0 0 15px var(--accent-glow); }

/* 카드 구조 강화 */
.card {
    background: var(--card-bg); border-radius: 5px; padding: 20px;
    border: 1px solid var(--border-color); margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: border-color 0.3s;
    animation: fadeInUp 0.8s ease-out both;
}
.card:hover { border-color: #474d57; }

.card-title {
    font-size: 1.05rem; margin-bottom: 20px; font-weight: 700;
    display: flex; align-items: center; color: var(--point-color);
}
.card-title::before {
    content: ''; display: inline-block; width: 4px; height: 16px;
    background: var(--point-color); margin-right: 12px; border-radius: 2px;
    box-shadow: 0 0 8px var(--point-color);
}

.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }
.widget-main { width:1200px; height: 400px; border-radius: 4px; overflow: hidden; background: #131722; }
.widget-side { height: 400px; border-radius: 4px; overflow: hidden; }

/* 하단 오버뷰 카드 */
.card-full { animation-delay: 0.4s; }

@media (max-width: 1024px) { 
    .main-grid { grid-template-columns: 1fr; } 
    header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .search-area { width: 100%; }
    .search-input { flex: 1; }
}