:root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --team-color: #00f0ff;
    --team-color-2: #8b5cf6;
    --team-grad: linear-gradient(135deg, var(--team-color), var(--team-color-2));
    --team-logo: none;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* 배너/버튼/섹션/푸터 — 타자용과 동일 */
.team-hero {
    padding: 60px 30px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    position: relative;
    background: var(--team-grad);
    overflow: hidden;
}

.team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--team-logo);
    background-repeat: no-repeat;
    background-position: right 6% center;
    background-size: 200px;
    pointer-events: none;
}

.team-hero-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.team-hero-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.slogan.team-slogan {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, .8);
    margin-top: 10px;
    animation: sloganFade 1.4s ease-in-out forwards;
    opacity: 0;
}

@keyframes sloganFade {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.team-hero-logo {
    width: 200px;
    height: 120px;
}

.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--team-color);
    transition: .2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 12px var(--team-color);
}

.back-home-section {
    text-align: center;
    margin: 40px 0 20px;
}

.neon-home-btn {
    background: var(--team-color);
    color: #0f172a;
    box-shadow: 0 0 12px rgba(0, 240, 255, .4);
}

.neon-home-btn:hover {
    background: var(--team-color-2);
    color: #fff;
    box-shadow: 0 0 18px rgba(139, 92, 246, .6);
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: .9rem;
    color: var(--muted);
}

/* 필터/뷰네비/테이블/툴팁/스티키/모바일 — 타자용과 동일 (그대로 복붙) */
.filter-row {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter-item.grow {
    flex: 1;
}

.filter-bar select, .filter-bar input {
    background: #121a33;
    color: #e2e8f0;
    border: 1px solid #2a3555;
    border-radius: 10px;
    padding: 8px 10px;
}

.search-button {
    background: transparent;
    border: 1px solid var(--team-color);
    color: var(--text);
}

.search-button:hover {
    box-shadow: 0 0 12px var(--team-color);
}

.view-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 14px;
}

.nav-btn {
    background: #121a33;
    border: 1px solid #2a3555;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #1f2a47;
}

.dots .dot.active {
    background: var(--team-color);
    box-shadow: 0 0 10px var(--team-color);
}

.table-wrap {
    margin-top: 10px;
}

.table-scroll {
    overflow: auto;
    border: 1px solid #1e2a44;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

#statsTable {
    border-collapse: collapse;
    width: 100%;
    min-width: 1100px;
}

#statsTable th, #statsTable td {
    border-bottom: 1px solid #1b2440;
    padding: 10px 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

#statsTable thead th {
    background: #0f1830;
    position: relative;
}

#statsTable tbody tr:hover {
    background: #0f1833;
}

.fixed-col {
    position: sticky;
    left: 0;
    background: rgba(10, 14, 24, .9);
    backdrop-filter: blur(6px);
    z-index: 2;
}

#statsTable .fixed-col + .fixed-col {
    left: 72px;
    z-index: 2;
}

#statsTable th.fixed-col, #statsTable td.fixed-col {
    min-width: 72px;
}

/* 기타 */
.stat-header {
    user-select: none;
    position: relative;
}

.rank-cell {
    width: 40px;
    min-width: 40px;
    text-align: center;
    padding: 4px 0;
}

.legend {
    margin: 12px 4px;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 768px) {
    .stats-body {
        font-size: 14px;
    }

    #statsTable th, #statsTable td {
        padding: 8px 10px;
    }

    #statsTable .fixed-col {
        min-width: 56px;
    }

    .team-hero .team-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 폭은 페이지 공통 변수로 관리해도 좋아요 */
:root{
    --rank-col-w: 72px;    /* 순위 열 너비 */
    --name-col-w: 180px;   /* 선수명 열 너비 */
}

/* 공통 고정 */
#statsTable .fixed-col{
    position: sticky;
    left: 0;
    background: rgba(10,14,24,.9);
    backdrop-filter: blur(6px);
    z-index: 2;
}

/* 두 번째 고정열(선수명)은 '첫 고정열의 바로 다음 형제'에만 left 적용 */
#statsTable .fixed-col + .fixed-col{
    left: var(--rank-col-w);
    z-index: 2;
}

/* 폭 고정 */
#statsTable th.fixed-col.fixed-col--rank,
#statsTable td.fixed-col.fixed-col--rank{
    min-width: var(--rank-col-w);
    width: var(--rank-col-w);
    text-align:center;
}

#statsTable th.fixed-col.fixed-col--name,
#statsTable td.fixed-col.fixed-col--name{
    min-width: var(--name-col-w);
    width: var(--name-col-w);
}

/* 헤더는 살짝 다른 배경으로(가독성) */
#statsTable thead th.fixed-col{ background:#0f1830; }

/* ⚠️ 예전 규칙과 충돌나면 꼭 제거 */
/* #statsTable th.fixed-col, #statsTable td.fixed-col { min-width: 72px; }  // (전역 72px 고정은 삭제)
   #statsTable .fixed-col + .fixed-col { left:72px; }                       // 위에서 변수로 재정의 했으니 중복 제거
*/

