:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0284c7; /* 스카이 블루 */
    --primary-hover: #0369a1;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }

/* Header */
.site-header { background: #ffffff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-main); font-size: 1.25rem; font-weight: 800; }
.logo-core { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }
.logo-badge { background: #e0f2fe; color: #0369a1; font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; border: 1px solid #bae6fd; }
.site-nav .nav-list { display: flex; list-style: none; gap: 24px; }
.nav-link { color: #475569; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Hero */
.square-hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #ffffff; padding: 55px 20px 45px; text-align: center; }
.hero-container { max-width: 860px; margin: 0 auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(2, 132, 199, 0.2); border: 1px solid rgba(2, 132, 199, 0.4); color: #7dd3fc; padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 800; margin-bottom: 16px; }
.hero-title { font-size: 2.25rem; font-weight: 900; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero-desc { font-size: 1rem; color: #cbd5e1; line-height: 1.6; }

/* Page Wrapper */
.main-content { min-height: calc(100vh - 350px); }
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 1.45rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* 🌟 완전히 새로운 UI 1: TOP 1~3 올림픽 포디움 스코어카드 🌟 */
.podium-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 45px; align-items: stretch; }
.podium-card { background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--card-shadow); position: relative; transition: transform 0.2s, border-color 0.2s; }
.podium-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.podium-card.rank-1 { border-color: #f59e0b; background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); }
.podium-card.rank-2 { border-color: #94a3b8; }
.podium-card.rank-3 { border-color: #d97706; }

.podium-medal { position: absolute; top: -14px; left: 24px; font-size: 0.8rem; font-weight: 900; padding: 4px 12px; border-radius: 20px; color: #fff; }
.podium-medal.gold { background: #f59e0b; }
.podium-medal.silver { background: #64748b; }
.podium-medal.bronze { background: #d97706; }

.podium-logo { width: 100%; height: 60px; border: 1px solid var(--border-color); border-radius: 8px; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; margin: 10px 0 16px; }
.podium-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.podium-info h3 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.podium-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 14px; min-height: 40px; }

.podium-metrics-row { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.metric-col { text-align: center; }
.metric-col span { display: block; font-size: 0.7rem; color: #64748b; font-weight: 700; }
.metric-col strong { font-size: 0.95rem; color: #0f172a; font-weight: 800; }

.btn-podium { width: 100%; background: var(--primary); color: #ffffff; text-align: center; text-decoration: none; font-size: 0.92rem; font-weight: 800; padding: 11px 0; border-radius: 8px; display: block; transition: background 0.2s; }
.btn-podium:hover { background: var(--primary-hover); }

/* 🌟 완전히 새로운 UI 2: 4~14위 실시간 탭 필터링 데이터시트 🌟 */
.filter-tabs-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { background: #ffffff; border: 1px solid var(--border-color); color: #475569; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.tab-btn:hover { background: #f1f5f9; }
.tab-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }

.datasheet-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); margin-bottom: 50px; }
.datasheet-table { width: 100%; border-collapse: collapse; text-align: left; }
.datasheet-table th { background: #f8fafc; padding: 14px 18px; font-size: 0.85rem; font-weight: 700; color: #475569; border-bottom: 1px solid var(--border-color); }
.datasheet-table td { padding: 14px 18px; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; color: #334155; }
.datasheet-table tbody tr:hover { background: #f8fafc; }
.datasheet-table tbody tr.hidden-row { display: none; }

.td-rank-num { font-weight: 900; color: var(--primary); text-align: center; width: 50px; }
.td-site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #0f172a; }
.td-site-thumb { width: 60px; height: 28px; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; background: #fff; padding: 2px; }
.td-site-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.td-benefit-tag { color: #e11d48; font-weight: 800; }
.td-speed-tag { color: #0284c7; font-weight: 700; }
.btn-sheet-go { background: #f1f5f9; color: #0f172a; text-decoration: none; font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 6px; display: inline-block; border: 1px solid #e2e8f0; }
.btn-sheet-go:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 클린 테이블 게시판 (슬러그 머리말 제거) */
.clean-board-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 40px; box-shadow: var(--card-shadow); }
.clean-board-table { width: 100%; border-collapse: collapse; text-align: left; }
.clean-board-table th { background: #f8fafc; padding: 14px 20px; font-size: 0.88rem; font-weight: 700; color: #475569; border-bottom: 1px solid var(--border-color); }
.clean-board-table td { padding: 14px 20px; font-size: 0.92rem; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
.clean-board-table tbody tr:last-child td { border-bottom: none; }
.clean-board-table tbody tr:hover { background: #f8fafc; }
.td-board-num { width: 60px; text-align: center; color: var(--primary); font-weight: 700; }
.td-board-title a { color: var(--text-main); text-decoration: none; font-weight: 600; display: block; }
.td-board-title a:hover { color: var(--primary); text-decoration: underline; }
.td-board-date { width: 110px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* 🌟 심층 SEO 콘텐츠 박스 🌟 */
.seo-content-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 36px; margin-bottom: 50px; line-height: 1.85; color: #334155; font-size: 0.95rem; box-shadow: var(--card-shadow); }
.seo-content-box h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; color: var(--text-main); }
.seo-content-box h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; color: var(--primary); }
.seo-content-box ul { margin: 10px 0 18px 24px; }
.seo-content-box li { margin-bottom: 6px; }

/* Article & Static View */
.article-view { background: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.article-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }
.article-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.article-body { font-size: 1.02rem; line-height: 1.85; color: #334155; }
.article-body h2 { font-size: 1.3rem; font-weight: 800; margin: 28px 0 12px; color: var(--text-main); }
.article-body p { margin-bottom: 16px; }

/* Detailed Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 50px 20px 30px; border-top: 1px solid #1e293b; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand h3 { color: #ffffff; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.footer-slogan { font-size: 0.88rem; color: #cbd5e1; margin-bottom: 8px; }
.footer-desc { max-width: 400px; font-size: 0.82rem; line-height: 1.5; color: #64748b; }
.footer-links-grid { display: flex; gap: 50px; }
.footer-col h4 { color: #ffffff; font-size: 0.92rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; font-size: 0.8rem; text-align: center; color: #64748b; }
.disclaimer-text { margin-top: 6px; font-size: 0.74rem; color: #475569; }

/* Responsive Mobile */
@media screen and (max-width: 860px) {
    .podium-grid-3col { grid-template-columns: 1fr; }
    .datasheet-wrap { overflow-x: auto; }
    .datasheet-table { min-width: 540px; }
}
@media screen and (max-width: 640px) {
    .header-container { height: auto; padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .site-nav .nav-list { display: flex; gap: 16px; white-space: nowrap; padding-bottom: 4px; }
    
    .square-hero-section { padding: 36px 16px 30px; }
    .hero-title { font-size: 1.45rem; }
    .page-wrapper { padding: 20px 14px 40px; }
    
    .clean-board-wrap { overflow-x: auto; }
    .clean-board-table { min-width: 440px; }
    .article-view { padding: 20px 16px; }
    .footer-links-grid { gap: 30px; }
}