@import url("./design-tokens.css");

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

        body {
            font-family: 'Noto Sans KR', sans-serif;
            background: #f5f7fa;
            color: #444;
            font-size: 0.9rem;
            line-height: 1.5;
            min-height: 100vh;
        }

        .container {
            max-width: var(--card-max-width);
            margin: 0 auto;
            padding: 10px;
            width: 100%;
            box-sizing: border-box;
        }
        
        @media (min-width: 769px) {
            .container {
                padding: 20px;
            }
        }

        .header {
            background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
            color: #ffffff;
            padding: 40px 20px 25px 20px;
            margin: 0 0 10px 0;
            width: 100%;
            text-align: center;
            box-sizing: border-box;
            box-shadow: 0 4px 8px rgba(0,0,0,0.12);
        }

        .header-content {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0;
        }

        .header h1 {
            font-size: var(--font-4xl);
            color: #ffffff;
            margin-bottom: 10px;
            font-weight: var(--font-weight-bold);
        }

        .header .subtitle {
            font-size: var(--font-xl);
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 20px;
        }

        .update-info {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: var(--font-md);
            font-weight: var(--font-weight-medium);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .full-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        @media (min-width: 900px) {
            .full-grid {
                grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
                gap: 25px;
                margin-bottom: 30px;
                max-width: 1400px;
                margin-left: auto;
                margin-right: auto;
            }
        }
        
        /* 대형 화면에서는 최대 2-3컬럼으로 제한 */
        @media (min-width: 1400px) {
            .full-grid {
                grid-template-columns: repeat(2, 1fr);
                max-width: 1200px;
            }
        }

        /* 태블릿 이상에서 날짜를 한 줄로 표시 (768px로 낮춤) */
        @media (min-width: 768px) {
            /* 날짜를 한 줄로 표시 */
            .date-cell br {
                display: none;
            }
            
            .date-cell .date-main {
                margin-right: 4px;
            }
            
            .date-cell .date-day {
                margin-right: 4px;
            }
            
            .date-cell .date-time,
            .date-cell .date-holiday {
                margin-left: 4px;
            }
        }
        
        /* PC 버전 전체 컨테이너 폭 제한 */
        @media (min-width: 1024px) {
            .container {
                max-width: 1300px;
            }
        }

        .wide-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .card {
            background: var(--card-background);
            border-radius: var(--card-border-radius);
            padding: var(--card-padding);
            box-shadow: var(--card-shadow);
            backdrop-filter: var(--card-backdrop-filter);
            margin: var(--card-margin);
            width: var(--card-width) !important;
            max-width: var(--card-max-width) !important;
            min-width: 0 !important;
            box-sizing: border-box;
            overflow: visible; /* 모든 콘텐츠 표시 */
        }                        

        /* 개선 제안 카드 전용 스타일 */
        .improvement-suggestion-content {
            text-align: center;
            padding: 20px 0;
        }

        .improvement-suggestion-text {
            font-size: var(--font-base);
            margin: 0 0 20px 0;
            color: #4b5563;
            line-height: 1.6;
        }

        .improvement-suggestion-subtext {
            font-size: var(--font-sm);
            opacity: 0.8;
        }

        .improvement-suggestion-btn {
            display: inline-block;
            color: white;
            text-decoration: none;
            font-size: var(--font-base);
            padding: 14px 28px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            transition: all 0.3s ease;
            font-weight: var(--font-weight-semibold);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            border: none;
            cursor: pointer;
        }

        .improvement-suggestion-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .card-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 2px solid #ecf0f1;
        }

        .card-icon {
            font-size: var(--font-3xl);
            margin-right: 15px;
        }

        .card-title {
            font-size: var(--font-2xl);
            font-weight: var(--font-weight-semibold);
            color: #2c3e50;
        }

        /* 전체 순위표 - 가로 스크롤 */
        .full-standings-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0;
            font-size: var(--font-base);
        }

        .full-standings-table th,
        .full-standings-table td {
            padding: 10px 6px;
            text-align: center;
            border: 1px solid #d1d5db;
            white-space: nowrap;
        }
        
        .full-standings-table th {
            border: 1px solid #d1d5db;
        }

        .full-standings-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-base);
            font-family: var(--font-family-base);
        }

        .full-standings-table .team-name {
            text-align: center !important;
            font-weight: var(--font-weight-semibold);
            min-width: 70px;
        }

        .full-standings-table .rank-1 { background: #fff3cd; }
        .full-standings-table .rank-2 { background: #f8f9fa; }
        .full-standings-table .rank-3 { background: #f8f9fa; }

        /* 지표 그리드 */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .metric-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            border-left: 4px solid #3498db;
        }

        .metric-card.positive {
            border-left-color: #27ae60;
            background: #f0f9f4;
        }

        .metric-card.negative {
            border-left-color: #e74c3c;
            background: #fdf2f2;
        }

        .metric-card.neutral {
            border-left-color: #d97706;
            background: #fffbf0;
        }

        .metric-value {
            font-size: var(--font-2xl);
            font-weight: var(--font-weight-bold);
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .metric-label {
            font-size: var(--font-sm);
            color: #7f8c8d;
            font-weight: var(--font-weight-medium);
        }

        .metric-team {
            font-size: var(--font-md);
            font-weight: var(--font-weight-semibold);
            color: #2980b9;
            margin-bottom: 5px;
        }

        /* 상세 테이블 */
        .detail-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 0;
            font-size: var(--font-base);
        }

        .detail-table th,
        .detail-table td {
            padding: 8px 6px;
            text-align: center;
            border: 1px solid #d1d5db;
        }

        .detail-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-base);
            font-family: var(--font-family-base);
            cursor: pointer;
            transition: background 0.2s ease;
            user-select: none;
            position: relative;
        }
        
        .detail-table th:hover {
            background: #2c3e50;
        }
        
        .detail-table th.sortable::after {
            content: '';
        }
        
        .detail-table th.sort-asc::after {
            content: '';
        }
        
        .detail-table th.sort-desc::after {
            content: '';
        }

        .detail-table .team-name {
            text-align: center !important;
            font-weight: var(--font-weight-semibold);
        }

        /* 순위 열 스타일 */
        .detail-table th:first-child {
            width: var(--rank-col);
            min-width: var(--rank-col);
            max-width: var(--rank-col);
        }
        
        /* 순위 셀 통일된 스타일 */
        .detail-table td:first-child,
        .full-standings-table td:first-child {
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-bold);
            text-align: center;
        }
        
        .detail-table td:first-child {
            width: var(--rank-col);
            min-width: var(--rank-col);
            max-width: var(--rank-col);
            font-weight: var(--font-weight-bold);
            text-align: center;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            color: #495057;
        }

        /* 순위별 특별 표시 */
        .rank-1 { 
            background: linear-gradient(135deg, #ffd700, #ffed4e) !important; 
            color: #8b5a00 !important; 
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-bold) !important;
        }
        .rank-2 { 
            background: linear-gradient(135deg, #c0c0c0, #e8e8e8) !important; 
            color: #666666 !important; 
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-bold) !important;
        }
        .rank-3 { 
            background: linear-gradient(135deg, #cd7f32, #daa557) !important; 
            color: #5d3a0a !important; 
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-bold) !important;
        }
        
        .rank-other {
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-semibold) !important;
        }

        .positive { color: #059669; font-weight: var(--font-weight-semibold); }
        .negative { color: #dc2626; font-weight: var(--font-weight-semibold); }
        .neutral { color: #d97706; font-weight: var(--font-weight-semibold); }
        
        /* 승-패-승률 셀 스타일 개선 */
        .record-cell {
            text-align: center;
            padding: 8px 4px;
            font-size: var(--font-base);
            line-height: 1.3;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .record-cell:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .record-cell .record {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
            font-size: var(--font-md);
            margin-bottom: 2px;
            display: block;
        }
        
        .record-cell .rate {
            font-family: var(--winrate-font-family);
            font-size: var(--font-sm);
            font-weight: var(--winrate-font-weight);
            opacity: 0.9;
            display: block;
            padding: 1px 4px;
            border-radius: 8px;
            background: rgba(255,255,255,0.7);
        }
        
        .record-cell .games {
            font-size: var(--font-2xs);
            color: #666;
            margin-top: 2px;
            display: block;
            opacity: 0.8;
        }

        /* 매트릭스 테이블 */
        .matrix-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--font-base);
            margin-top: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            min-width: 1100px; /* 매트릭스 테이블 최소 너비 */
        }

        .matrix-table th,
        .matrix-table td {
            padding: 6px 8px;
            text-align: center;
            border: 1px solid #d1d5db;
            position: relative;
            min-width: 90px;
            width: 90px;
            max-width: 90px;
        }

        .matrix-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-base);
            font-family: var(--font-family-base);
            padding: 12px 8px;
            text-align: center;
        }
        
        /* 태블릿 이상 해상도에서 매트릭스 테이블 스티키 헤더 적용 */
        @media (min-width: 769px) {
            .matrix-table th {
                position: sticky;
                top: 0;
                z-index: 10;
            }
            
            /* 요일별 테이블 헤더 스티키 적용 */
            #weekdayTable thead th {
                position: sticky;
                top: 0;
                z-index: 10;
            }
            
            /* 매트릭스 테이블 컨테이너 높이 제한 */
            #matrixContent .table-container,
            #remainingGamesContent .table-container {
                max-height: 600px;
                overflow-y: auto;
                position: relative;
            }
        }
        
        /* 왼쪽 팀명 열 간격 조정 */
        .matrix-table th:first-child,
        .matrix-table td:first-child {
            padding: 8px 4px !important;
            min-width: 70px !important;
            width: 70px !important;
            max-width: 70px !important;
        }

        .matrix-table td {
            background: white;
            transition: background-color 0.2s ease;
        }

        .matrix-table td:hover {
            background-color: #f8f9fa;
            transform: scale(1.02);
        }

        .matrix-table .matrix-record {
            font-family: var(--data-font-family) !important;
            font-weight: var(--font-weight-bold) !important;
            font-size: var(--font-lg) !important;
            display: block !important;
            margin-bottom: 12px !important;
            color: #1f2937 !important;
            background: rgba(255, 255, 255, 0.8) !important;
            padding: 4px 6px !important;
            border-radius: 6px !important;
            border: 1px solid rgba(209, 213, 219, 0.6) !important;
        }
        
        .matrix-cell-detailed {
            text-align: center;
            font-size: var(--font-base);
        }
        
        .matrix-table .matrix-details {
            margin-top: 12px !important;
            padding-top: 10px !important;
            border-top: 2px solid #d1d5db !important;
            background: rgba(248, 249, 250, 0.5) !important;
            border-radius: 4px !important;
            padding: 8px 4px 6px 4px !important;
        }
        
        .home-away-split {
            display: flex;
            justify-content: space-between;
            gap: 4px;
        }
        
        .matrix-table .home-record, 
        .matrix-table .away-record {
            font-size: var(--font-xs) !important;
            padding: 3px 6px !important;
            border-radius: 4px !important;
            background: #f8f9fa !important;
            border: 1px solid #e9ecef !important;
            font-weight: var(--font-weight-medium) !important;
        }
        
        .matrix-table .home-record {
            color: #2563eb !important;
            background: rgba(37, 99, 235, 0.1) !important;
            border-color: rgba(37, 99, 235, 0.2) !important;
        }
        
        .matrix-table .away-record {
            color: #dc2626 !important;
            background: rgba(220, 38, 38, 0.1) !important;
            border-color: rgba(220, 38, 38, 0.2) !important;
        }
        
        .matrix-table .home-record:hover {
            background: rgba(37, 99, 235, 0.2) !important;
            border-color: rgba(37, 99, 235, 0.4) !important;
            color: #1d4ed8 !important;
        }
        
        .matrix-table .away-record:hover {
            background: rgba(220, 38, 38, 0.2) !important;
            border-color: rgba(220, 38, 38, 0.4) !important;
            color: #b91c1c !important;
        }

        .matrix-rate {
            font-family: var(--winrate-font-family);
            font-size: var(--font-xs);
            font-weight: var(--winrate-font-weight);
            opacity: 0.8;
        }

        /* 월별/요일별 그리드 */
        .performance-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            margin-top: 20px;
        }
        
        @media (max-width: 1400px) {
            .performance-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 900px) {
            .performance-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 600px) {
            .performance-grid {
                grid-template-columns: 1fr;
            }
        }

        .performance-item {
            background: white;
            border-radius: 15px;
        }
        
        
        .team-rank {
            background: #3498db;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: var(--font-base);
            font-weight: var(--font-weight-semibold);
            margin-right: 10px;
        }
        
        .team-name-large {
            font-size: var(--font-xl);
            font-weight: var(--font-weight-bold);
            color: #2c3e50;
        }

        .team-logo {
            width: 24px;
            height: 24px;
            margin-right: 8px;
            vertical-align: middle;
            border-radius: 3px;
        }

        .team-logo-small {
            width: 18px;
            height: 18px;
            margin-right: 5px;
            vertical-align: middle;
            border-radius: 2px;
        }
        
        #monthlyTable .team-logo-small {
            width: 16px;
            height: 16px;
            margin-right: 3px;
        }

        .team-name-with-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .matrix-table .team-name-with-logo {
            gap: 3px;
            font-size: var(--font-base);
        }

        .weekly-table .team-name-with-logo, 
        .all-teams-table .team-name-with-logo {
            gap: 6px;
        }

        /* 월별 테이블 스타일 개선 */
        #monthlyTable {
            border-collapse: collapse;
            font-size: var(--font-sm);
            width: 100%;
        }

        #monthlyTable th,
        #monthlyTable td {
            border: 1px solid #d1d5db;
            padding: 6px 2px;
            text-align: center;
            max-width: 60px;
            width: 60px;
        }

        #monthlyTable th:first-child,
        #monthlyTable td:first-child {
            max-width: 80px;
            width: 80px;
        }
        
        #monthlyTable .stats-row {
            border-top: 2px solid #d1d5db;
        }
        
        #monthlyTable .stats-row:first-of-type {
            border-top: 1px solid #6b7280;
        }

        #monthlyTable th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-sm);
            font-family: var(--font-family-base);
            white-space: nowrap;
        }


        #monthlyTable .team-name-with-logo {
            gap: 2px;
            font-size: var(--font-xs);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        #monthlyTable th {
            white-space: nowrap;
            vertical-align: middle;
        }

        /* 월별 테이블 통계 행들 스타일 */
        #monthlyTable .stats-row {
            border-top: 1px solid #34495e;
        }

        #monthlyTable .stats-row td {
            border-color: #d1d5db;
            font-weight: var(--font-weight-medium);
            padding: 10px 8px;
            font-size: var(--font-base);
            text-align: center;
        }

        /* 월별 테이블 라벨 셀 (월, 통계 라벨) */
        #monthlyTable .month-label,
        #monthlyTable .stats-label {
            font-weight: var(--font-weight-semibold);
            color: white;
            padding: 10px 8px;
            text-align: center;
        }

        #monthlyTable .month-label {
            background: #f8f9fa !important;
            color: #495057 !important;
            font-size: var(--font-md);
            padding: 6px 1px;
        }

        #monthlyTable .stats-label {
            font-size: var(--font-base);
            padding: 6px 1px;
        }

        /* 월별 테이블 데이터 셀 */
        #monthlyTable .month-data {
            font-size: var(--font-base);
            line-height: 1.3;
            padding: 6px 1px;
            text-align: center;
            color: #2d3748;
        }
        
        /* 월별/요일별 기록 셀 */
        .month-record-cell, .month-rate-cell {
            color: #2d3748 !important;
            font-weight: var(--font-weight-semibold);
        }

        #monthlyTable .month-data .record {
            margin-bottom: 2px;
        }

        #monthlyTable .month-data .rate {
            font-family: var(--winrate-font-family);
            font-weight: var(--winrate-font-weight);
            font-size: var(--font-base);
        }
        
        /* 새로운 분리된 셀 스타일 */
        #monthlyTable .month-record-cell {
            font-size: var(--font-base);
            font-weight: var(--font-weight-semibold);
            text-align: center;
            padding: 6px 1px;
            /* 배경색을 JavaScript에서 동적으로 설정 */
            line-height: 1.3;
        }
        
        #monthlyTable .month-rate-cell {
            font-family: var(--winrate-font-family);
            font-size: var(--font-md);
            font-weight: var(--font-weight-bold);
            text-align: center;
            padding: 6px 1px;
            line-height: 1.3;
        }

        /* ===== 요일별 성적 분석 테이블 스타일 (행/열 반전 구조) ===== */
        #weekdayTable {
            border-collapse: collapse;
            font-size: var(--font-sm);
            width: 100%;
        }

        /* 기본 셀 스타일 (월별 테이블과 동일) */
        #weekdayTable th,
        #weekdayTable td {
            border: 1px solid #d1d5db;
            padding: 5px 1px;
            text-align: center;
            max-width: 50px !important;
            width: 50px !important;
        }

        /* 첫 번째 컬럼(요일 라벨) 폭 확장 */
        #weekdayTable th:first-child,
        #weekdayTable td:first-child {
            max-width: 80px;
            width: 80px;
        }

        /* 통계 행 상단 구분선 */
        #weekdayTable .stats-row {
            border-top: 2px solid #d1d5db;
        }

        /* 좌측 요일 라벨 (기본 스타일) */
        #weekdayTable .day-label {
            color: white;
            font-size: var(--font-md);
            padding: 6px 1px;
        }

        /* 평일 요일 라벨 - 연한 회색 배경 */
        #weekdayTable .day-label.weekday {
            background: #f8f9fa !important;
            color: #495057 !important;
        }

        /* 주말 요일 라벨 - 연한 회색 배경에 붉은 폰트 */
        #weekdayTable .day-label.weekend {
            background: #f8f9fa !important;
            color: #dc2626 !important;
        }

        /* 평일성적/주말성적 좌측 라벨 (기본 스타일) */
        #weekdayTable .stats-label {
            color: white;
            font-size: var(--font-base);
            padding: 6px 1px;
        }

        /* 데이터 셀 내용 (승-패-무 (승률) + 경기수) */
        #weekdayTable .day-data {
            font-size: var(--font-base);
            line-height: 1.3;
            padding: 6px 1px;
            text-align: center;
            color: #2d3748;
        }

        #weekdayTable .day-data .record {
            margin-bottom: 2px;
        }

        #weekdayTable .day-data .rate {
            font-family: var(--winrate-font-family);
            font-weight: var(--winrate-font-weight);
            font-size: var(--font-base);
        }

        /* 레거시 셀 클래스 (현재 미사용) */
        #weekdayTable .day-record-cell,
        #weekdayTable .day-rate-cell {
            font-size: var(--font-base);
            font-weight: var(--font-weight-semibold);
            text-align: center;
            padding: 6px 1px;
            line-height: 1.3;
        }
        
        /* 월별/요일별 테이블에 주차별과 동일한 색상 클래스 적용 */
        #monthlyTable .positive, #weekdayTable .positive {
            background: var(--positive-bg-medium) !important;
            color: var(--positive-color) !important;
            font-weight: var(--font-weight-semibold);
        }
        
        #monthlyTable .negative, #weekdayTable .negative {
            background: var(--negative-bg-medium) !important;
            color: var(--negative-color) !important;
            font-weight: var(--font-weight-semibold);
        }
        
        #monthlyTable .neutral, #weekdayTable .neutral {
            background: var(--neutral-bg-light) !important;
            color: var(--neutral-color) !important;
            font-weight: var(--font-weight-medium);
        }

        /* 주말승률과 평일승률 열 구분선 제거 */
        #weekdayTable th:nth-child(10), /* 주말승률 헤더 */
        #weekdayTable td:nth-child(10) { /* 주말승률 데이터 */
            position: relative;
        }


        /* 상단 팀 헤더: 월별/주차별 테이블과 동일한 색상 */
        #weekdayTable thead th {
            background: #34495e !important;
            color: white !important;
            font-weight: var(--font-weight-bold);
        }

        /* 평일성적 헤더 - 조금 더 진한 회색 배경 */
        #weekdayTable .stats-label.weekday-stats {
            background: #e9ecef !important;
            color: #495057 !important;
        }

        /* 주말성적 헤더 - 조금 더 진한 회색 배경에 붉은 폰트 */
        #weekdayTable .stats-label.weekend-stats {
            background: #e9ecef !important;
            color: #dc2626 !important;
        }

        /* 요일별 분석 색상 정의 */
        #weekdayTable .positive {
            background: var(--positive-bg-medium);
            color: var(--positive-color);
            font-weight: var(--font-weight-semibold);
        }

        #weekdayTable .negative {
            background: var(--negative-bg-medium);
            color: var(--negative-color);
            font-weight: var(--font-weight-semibold);
        }

        #weekdayTable .neutral {
            background: var(--neutral-bg-light);
            color: var(--neutral-color);
            font-weight: var(--font-weight-medium);
        }

        /* 주차별 분석 색상 정의 (요일별과 동일) */
        .weekly-table .positive {
            background: var(--positive-bg-medium);
            color: var(--positive-color);
            font-weight: var(--font-weight-semibold);
        }

        .weekly-table .negative {
            background: var(--negative-bg-medium);
            color: var(--negative-color);
            font-weight: var(--font-weight-semibold);
        }

        .weekly-table .neutral {
            background: var(--neutral-bg-light);
            color: var(--neutral-color);
            font-weight: var(--font-weight-medium);
        }

        /* 추가 강도별 색상 클래스 */
        .positive-very-light { 
            background: var(--positive-bg-very-light) !important; 
            color: var(--positive-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .positive-light { 
            background: var(--positive-bg-light) !important; 
            color: var(--positive-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .positive-medium { 
            background: var(--positive-bg-medium) !important; 
            color: var(--positive-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .positive-strong { 
            background: var(--positive-bg-strong) !important; 
            color: var(--positive-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .positive-very-strong { 
            background: var(--positive-bg-very-strong) !important; 
            color: var(--positive-color) !important; 
            font-weight: var(--font-weight-bold);
        }

        .negative-very-light { 
            background: var(--negative-bg-very-light) !important; 
            color: var(--negative-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .negative-light { 
            background: var(--negative-bg-light) !important; 
            color: var(--negative-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .negative-medium { 
            background: var(--negative-bg-medium) !important; 
            color: var(--negative-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .negative-strong { 
            background: var(--negative-bg-strong) !important; 
            color: var(--negative-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .negative-very-strong { 
            background: var(--negative-bg-very-strong) !important; 
            color: var(--negative-color) !important; 
            font-weight: var(--font-weight-bold);
        }

        .neutral-very-light { 
            background: var(--neutral-bg-very-light) !important; 
            color: var(--neutral-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .neutral-light { 
            background: var(--neutral-bg-light) !important; 
            color: var(--neutral-color) !important; 
            font-weight: var(--font-weight-medium);
        }
        .neutral-medium { 
            background: var(--neutral-bg-medium) !important; 
            color: var(--neutral-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .neutral-strong { 
            background: var(--neutral-bg-strong) !important; 
            color: var(--neutral-color) !important; 
            font-weight: var(--font-weight-semibold);
        }
        .neutral-very-strong { 
            background: var(--neutral-bg-very-strong) !important; 
            color: var(--neutral-color) !important; 
            font-weight: var(--font-weight-bold);
        }

        /* 분석 테이블 호버 효과 및 전환 애니메이션 */
        #fullStandingsTable td,
        #pythagoreanTable td,
        #clutchTable td,
        #homeAwayTable td,
        #matrixTable td,
        #monthlyTable td,
        #weekdayTable td,
        .weekly-table td {
            transition: all 0.3s ease;
            position: relative;
        }

        #fullStandingsTable td:hover,
        #pythagoreanTable td:hover,
        #clutchTable td:hover,
        #homeAwayTable td:hover,
        #matrixTable td:hover,
        #monthlyTable td:hover,
        #weekdayTable td:hover,
        .weekly-table td:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            z-index: 1;
        }

        /* 월별 테이블 일반 데이터 행 */
        #monthlyTable tbody tr:not(.stats-row) td {
            /* 배경색을 JavaScript에서 동적으로 설정하므로 여기서는 제거 */
        }

        #monthlyTable tbody tr:not(.stats-row):hover td {
            /* 호버 시에도 동적 배경색 유지 */
            filter: brightness(1.05);
        }
        
        .home-away-summary {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .home-summary, .away-summary {
            flex: 1;
            text-align: center;
            padding: 12px;
            border-radius: 10px;
            background: #f8f9fa;
        }
        
        .location-label {
            font-size: var(--font-base);
            font-weight: var(--font-weight-semibold);
            color: #666;
            margin-bottom: 5px;
        }
        
        .record-large {
            font-size: var(--font-xl);
            font-weight: var(--font-weight-bold);
            margin-bottom: 3px;
        }
        
        .rate-large {
            font-size: var(--font-lg);
            font-weight: var(--font-weight-semibold);
            opacity: 0.8;
        }
        

        .performance-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        }

        .performance-team {
            font-size: var(--font-xl);
            font-weight: var(--font-weight-bold);
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 3px solid #3498db;
        }

        .performance-detail {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f8f8f8;
            font-size: var(--font-md);
            line-height: 1.4;
            transition: all 0.2s ease;
        }

        .performance-detail:last-child {
            border-bottom: none;
        }
        
        .performance-detail:hover {
            background-color: #fafafa;
            border-radius: 6px;
            padding: 8px 6px;
        }

        .performance-period {
            font-weight: var(--font-weight-semibold);
            color: #2c3e50;
            min-width: 80px;
            line-height: 1.3;
        }

        .performance-result {
            font-weight: var(--font-weight-semibold);
            text-align: right;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .performance-wins {
            color: #2ecc71;
            font-size: var(--font-lg);
        }

        .performance-losses {
            color: #e67e22;
            font-size: var(--font-lg);
        }

        .performance-rate {
            background: #ecf0f1;
            padding: 3px 8px;
            border-radius: 10px;
            font-size: var(--font-sm);
            font-weight: var(--font-weight-bold);
            margin-left: 6px;
        }

        .table-container {
            overflow-x: auto;
            overflow-y: visible; /* allow sticky column shadows to render */
            margin-top: 8px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 100%;
            -webkit-overflow-scrolling: touch; /* iOS 스크롤 개선 */
            position: relative; /* z-index context for sticky elements */
            background: white;  /* avoid transparency artifacts under sticky cells */
        }
        
        /* 모든 테이블에 최소 너비 설정하여 스크롤 보장 */
        .table-container table {
            min-width: 900px; /* 기본 최소 너비 */
        }
        
        
        /* 중간 해상도(태블릿 가로 모드 등)에서 테이블 스크롤 강화 */
        @media (max-width: 1024px) and (min-width: 769px) {
            .table-container {
                overflow-x: auto !important;
                width: 100% !important;
                max-width: 100% !important;
            }
            
            .table-container table {
                min-width: 1000px !important; /* 중간 해상도에서 더 넓은 최소 너비 */
            }
        }

        /* 팀별 진행률 카드 스타일 */
        .team-progress-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 12px 16px;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .team-progress-card:hover {
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .team-progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .team-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .team-logo-progress {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }
        
        .team-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: #374151;
        }
        
        .progress-percentage {
            font-weight: 700;
            font-size: 1rem;
        }
        
        .team-progress-bar {
            width: 100%;
            height: 8px;
            background: #f3f4f6;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        
        .team-progress-fill {
            height: 100%;
            transition: width 1s ease-in-out;
            border-radius: 4px;
        }
        
        .progress-stats {
            display: flex;
            justify-content: space-between;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            display: block;
            font-weight: 700;
            font-size: 1.1rem;
            color: #374151;
        }
        
        .stat-label {
            font-size: 0.75rem;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* 일자별 순위 그래프 모바일 최적화 */
        @media (max-width: 768px) {
            .daily-stats-header {
                padding: 3px 6px !important;
                top: 46px !important;
                margin-bottom: 10px !important;
            }
            
            .daily-stats-controls {
                gap: 3px !important;
                row-gap: 3px !important;
            }
            
            .daily-stats-date-display {
                font-size: 11px !important;
                padding: 3px 8px !important;
                min-width: 110px !important;
            }
            
            .daily-stats-btn {
                padding: 3px 8px !important;
                font-size: 10px !important;
            }
            
            .daily-stats-date-input {
                padding: 3px 8px !important;
                font-size: 11px !important;
                width: 110px;
            }
            
            .daily-stats-animation-controls {
                gap: 2px !important;
            }
            
            .daily-stats-nav-buttons {
                gap: 2px !important;
            }
        }
        
        /* 모바일 가로 모드 최적화 */
        @media (max-width: 768px) and (orientation: landscape) {
            .daily-stats-header {
                top: 42px !important;
                padding: 2px 6px !important;
            }
        }

        /* 모바일에서 매트릭스 테이블 상단 헤더 셀 너비 확대 */
        @media (max-width: 768px) {
            .matrix-table th:not(:first-child) {
                min-width: 110px !important;
                width: 110px !important;
                max-width: 110px !important;
            }
            
            /* 게임별 기록과 연승/연패 분석 테이블의 팀명 헤더 셀 폭 확대 */
            .weekly-table .team-header,
            .all-teams-table .team-header-column {
                min-width: 105px !important;
                width: 105px !important;
                font-size: var(--font-xs) !important;
                padding: 8px 3px !important;
            }
        }

        /* 모바일에서 왼쪽 컬럼 고정 (Sticky Columns) */
        @media (max-width: 768px) {
            .table-container {
                position: relative;
            }
            
            /* 전체 팀명 컬럼 좌우 패딩 축소 - 월별/경기장별 테이블 제외 */
            .detail-table:not(#monthlyTable):not(#stadiumTable) th:nth-child(2),
            .detail-table:not(#monthlyTable):not(#stadiumTable) td:nth-child(2),
            .full-standings-table th:nth-child(2),
            .full-standings-table td:nth-child(2),
            #weekdayTable th:nth-child(2),
            #weekdayTable td:nth-child(2) {
                padding-left: 4px !important;
                padding-right: 4px !important;
            }
            
            /* 월별/경기장별 테이블 - sticky 완전 제거 */
            #monthlyTable th,
            #monthlyTable td,
            #stadiumTable th,
            #stadiumTable td {
                position: static !important;
                left: auto !important;
                z-index: auto !important;
                border-right: none !important;
                box-shadow: none !important;
            }
            
            /* 월별/경기장별 테이블 첫 번째 컬럼만 sticky */
            #monthlyTable th:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                min-width: 70px !important;
            }
            
            #monthlyTable td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                border-right: 2px solid #495057 !important;
                min-width: 70px !important;
            }
            
            /* 월 라벨은 연한 회색 적용 */
            #monthlyTable td:first-child.month-label {
                background: #f8f9fa !important;
                color: #495057 !important;
            }
            
            #stadiumTable th:first-child,
            #stadiumTable td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #f8f9fa !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                min-width: 140px !important;
                font-weight: bold !important;
            }
            
            /* ===== 순위+팀명이 있는 일반 테이블들 (첫 번째와 두 번째 컬럼 모두 고정) ===== */

            /* 첫 번째 컬럼 (순위) 고정 - 순위+팀명이 있는 테이블만 */
            .detail-table:not(#monthlyTable):not(#stadiumTable) thead th:first-child,
            .full-standings-table thead th:first-child,
            #weekdayTable thead th:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: var(--z-sticky-corner) !important; /* top-left corner has highest */
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                min-width: var(--rank-col) !important;
                box-shadow: var(--sticky-shadow) !important; /* edge glow to the right */
            }

            .detail-table:not(#monthlyTable):not(#stadiumTable) tbody td:first-child,
            .full-standings-table tbody td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: var(--z-sticky-col1) !important;
                background: #f8f9fa !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                font-weight: bold !important;
                min-width: var(--rank-col) !important;
                box-shadow: var(--sticky-shadow) !important; /* edge glow to the right */
            }
            
            /* 요일별 테이블 첫 번째 컬럼 별도 처리 (스티키만) */
            #weekdayTable tbody td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: var(--z-sticky-col1) !important;
                border-right: 2px solid #dee2e6 !important;
                min-width: var(--rank-col) !important;
                box-shadow: var(--sticky-shadow) !important; /* edge glow to the right */
                /* 색상은 .day-label 클래스가 처리 */
            }

            /* 두 번째 컬럼 (팀명) 고정 - 순위+팀명이 있는 테이블만 */
            .detail-table:not(#monthlyTable):not(#stadiumTable) thead th:nth-child(2),
            .full-standings-table thead th:nth-child(2) {
                position: sticky !important;
                left: var(--rank-col) !important;
                z-index: var(--z-sticky-col2-header) !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                box-shadow: var(--sticky-shadow) !important;
                min-width: var(--team-col) !important;
            }

            .detail-table:not(#monthlyTable):not(#stadiumTable) tbody td:nth-child(2),
            .full-standings-table tbody td:nth-child(2) {
                position: sticky !important;
                left: var(--rank-col) !important;
                z-index: var(--z-sticky-col2) !important;
                background: white !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                box-shadow: var(--sticky-shadow) !important;
                font-weight: 600 !important;
                min-width: var(--team-col) !important;
            }

            /* 요일별 테이블 팀명 셀 너비 축소 */
            #weekdayTable thead th:nth-child(2) {
                position: sticky !important;
                left: var(--rank-col) !important;
                z-index: var(--z-sticky-col2-header) !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                box-shadow: var(--sticky-shadow) !important;
                min-width: 70px !important;
            }

            #weekdayTable tbody td:nth-child(2) {
                position: sticky !important;
                left: var(--rank-col) !important;
                z-index: var(--z-sticky-col2) !important;
                background: white !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                box-shadow: var(--sticky-shadow) !important;
                font-weight: 600 !important;
                min-width: 70px !important;
            }

            /* ===== 매트릭스 테이블 (첫 번째 컬럼만 고정) ===== */
            .matrix-table thead th:first-child,
            .matrix-table tbody th:first-child,
            .matrix-table tbody td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                min-width: 70px !important;
            }


            /* ===== 경기장별 성적 분석 (첫 번째 컬럼 '경기장'만 고정) ===== */
            #stadiumTable thead th:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #f8f9fa !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                min-width: 140px !important;
                font-weight: bold !important;
            }
            
            #stadiumTable tbody td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #f8f9fa !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                min-width: 140px !important;
                font-weight: bold !important;
            }

            /* ===== 중계사별 승률 분석 전용 스타일 ===== */
            #broadcasterTable .broadcaster-name {
                background: var(--neutral-bg-light);
                font-weight: var(--font-weight-bold);
                text-align: left;
                padding: 8px 6px;
                white-space: nowrap;
                font-size: var(--font-sm);
            }

            #broadcasterTable .team-data {
                text-align: center;
                font-size: var(--font-xs);
                padding: 6px 4px;
            }

            #broadcasterTable .win-rate {
                font-weight: var(--font-weight-bold);
                font-size: var(--font-sm);
                margin-bottom: 2px;
            }

            #broadcasterTable .record {
                opacity: 0.8;
                font-size: var(--font-xs);
            }

            /* ===== 게임 기록 테이블들 (첫 번째 컬럼만 고정) ===== */
            .all-teams-table thead th:first-child,
            .detailed-game-table thead th:first-child,
            .weekly-table thead th:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 11 !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                min-width: 70px !important;
            }
            
            .all-teams-table tbody td:first-child,
            .detailed-game-table tbody td:first-child,
            .weekly-table tbody td:first-child {
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #f8f9fa !important;
                color: #495057 !important;
                border-right: 2px solid #dee2e6 !important;
                font-weight: bold !important;
                min-width: 70px !important;
            }
        }

        /* 모바일 전용 스타일 */
        .mobile-notice {
            display: none; /* 기본적으로 숨김 */
            margin-top: 12px;
            text-align: center;
            color: rgba(255,255,255,0.9);
        }

        /* 모바일 반응형 폰트 조정 */
        @media (max-width: 768px) {
            :root {
                --font-2xs: 0.65rem;
                --font-xs: 0.7rem;
                --font-sm: 0.75rem;
                --font-base: 0.8rem;
                --font-md: 0.85rem;
                --font-lg: 0.9rem;
                --font-xl: 1rem;
                --font-2xl: 1.2rem;
                --font-3xl: 1.5rem;
                --font-4xl: 2rem;
                --card-padding: 8px;
                --card-max-width: 100%;
            }
            
            .header h1 {
                font-size: var(--font-3xl);
            }
            
            .header {
                padding: 30px 15px !important;
            }
            
            .wide-card,
            .card {
                padding: 15px !important;
                border-radius: 12px !important;
            }
            
            .full-grid {
                grid-template-columns: 1fr;
            }
            
            .team-progress-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            
            .team-progress-card {
                font-size: 0.8rem !important;
                padding: 8px 12px !important;
            }
            
            .team-progress-header {
                margin-bottom: 6px !important;
            }
            
            .team-logo-progress {
                width: 16px !important;
                height: 16px !important;
            }
            
            .team-name {
                font-size: 0.75rem !important;
            }
            
            .progress-percentage {
                font-size: 0.85rem !important;
            }
            
            .metrics-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            }
            
            .performance-grid {
                grid-template-columns: 1fr;
            }
            
            .detailed-game-table {
                font-size: var(--font-sm);
            }
            
            .detailed-game-table th,
            .detailed-game-table td {
                padding: 7px 4px;
                border-left: none;
                border-right: none;
                font-size: var(--font-sm);
            }
            
            .detailed-game-table tr {
                border-bottom: 1px solid #e2e8f0;
            }
            
            /* 모바일에서 매트릭스 테이블 셀 크기 조정 */
            .matrix-table th,
            .matrix-table td {
                min-width: 70px;
                width: 70px;
                max-width: 70px;
                padding: 8px 4px;
                font-size: var(--font-xs);
            }

            /* 모바일에서 안내 메시지 표시 */
            .mobile-notice {
                display: block !important;
            }
            
            /* PC 버전 강제 모드에서는 모바일 스타일 무효화 */
            body.force-desktop .mobile-notice {
                display: none !important;
            }
            
            /* PC 버전 강제 시 일부 모바일 최적화 해제 */
            body.force-desktop {
                min-width: 1200px;
            }

            /* 모바일에서 업데이트 정보 스타일 개선 */
            .update-info {
                font-size: 0.8rem !important;
                padding: 8px 12px !important;
                background: rgba(255,255,255,0.15) !important;
                border-radius: 6px !important;
                border: 1px solid rgba(255,255,255,0.2) !important;
                margin-bottom: 8px !important;
            }

            /* 모바일에서 팀 로고와 팀명 간격 조정 */
            .team-name-with-logo {
                gap: 4px !important;
            }

            .matrix-table .team-name-with-logo {
                gap: 2px !important;
            }

            .weekly-table .team-name-with-logo, 
            .all-teams-table .team-name-with-logo {
                gap: 3px !important;
            }

            #monthlyTable .team-name-with-logo {
                gap: 1px !important;
            }

            /* 홈/원정 분석 테이블 */
            #homeAwayTable .team-name-with-logo {
                gap: 3px !important;
            }
            #homeAwayTable td.team-name {
                padding: 8px 2px !important;
            }

            /* 팀 로고 크기도 약간 조정 */
            .team-logo, .team-logo-small {
                margin-right: 3px !important;
            }
            
        }



        .highlight {
            background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: var(--font-weight-semibold);
        }

        /* 통일된 테이블 스타일 - 기존 테이블과 동일한 스타일 적용 */

        .weekly-table, .game-record-table, .all-teams-table, .detailed-game-table,
        .series-stats-table, .streak-records-table, .unified-stats-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--font-base);  /* 폰트 크기 증가 */
            margin-top: 0;
        }

        /* 테이블 스크롤 컨테이너 - 긴 테이블용 */
        .table-scroll-wrapper {
            max-height: 650px;  /* 더 많은 주차를 보여주도록 높이 증가 */
            overflow-y: auto;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            position: relative;
            margin-top: 10px;
        }
        
        /* 게임기록과 팀상세는 적절한 데이터 표시 */
        .table-scroll-wrapper:has(.all-teams-table),
        .table-scroll-wrapper:has(.detailed-game-table),
        .table-scroll-wrapper:has(.streak-records-table) {
            max-height: 650px; /* 개별 팀 테이블 높이 조금 더 줄임 */
        }

        .table-scroll-wrapper:has(.series-stats-table) {
            max-height: 450px;
        }

        /* 화면 크기별 반응형 높이 조정 - 더 많은 주차 표시 */
        @media (min-width: 1920px) {
            .table-scroll-wrapper {
                max-height: 800px;  /* 대형 모니터에서 더 많은 주차 */
            }
            
            /* 게임기록과 팀상세는 대형 모니터에서 적절한 높이 */
            .table-scroll-wrapper:has(.all-teams-table),
            .table-scroll-wrapper:has(.detailed-game-table),
            .table-scroll-wrapper:has(.streak-records-table) {
                max-height: 850px; /* 대형 모니터에서도 조금 더 줄임 */
            }
        }

        @media (max-width: 1366px) {
            .table-scroll-wrapper {
                max-height: 550px;  /* 노트북 화면 */
            }
            
            .table-scroll-wrapper:has(.all-teams-table),
            .table-scroll-wrapper:has(.detailed-game-table),
            .table-scroll-wrapper:has(.streak-records-table) {
                max-height: 600px; /* 노트북에서도 조금 더 줄임 */
            }
            .table-scroll-wrapper:has(.series-stats-table) {
                max-height: 420px;
            }
        }

        @media (max-width: 768px) {
            .table-scroll-wrapper {
                max-height: 450px;  /* 태블릿/모바일 */
            }
            
            .table-scroll-wrapper:has(.all-teams-table),
            .table-scroll-wrapper:has(.detailed-game-table),
            .table-scroll-wrapper:has(.streak-records-table) {
                max-height: 600px; /* 500px에서 600px로 증가 */
            }
            .table-scroll-wrapper:has(.series-stats-table) {
                max-height: 380px;
            }
            
            /* 테이블 컨테이너에 position relative 추가 */
            .table-container {
                position: relative !important;
                overflow: auto !important;
            }
            
            /* 전체 팀 날짜별 테이블의 날짜 열 모바일 최적화 + 상하좌우 스티키 */
            .all-teams-table th:first-child,
            .all-teams-table .date-header-cell {
                min-width: 70px !important;
                max-width: 70px !important;
                width: 70px !important;
                white-space: normal !important;
                word-break: keep-all !important;
                line-height: 1.2 !important;
                padding: 6px 4px !important;
                font-size: var(--font-2xs) !important;
                /* 상하좌우 스티키 적용 */
                position: sticky !important;
                left: 0 !important;
                top: 0 !important;
                z-index: 200 !important;
                background: #34495e !important;
                color: white !important;
                border-right: 2px solid #495057 !important;
                box-shadow: 2px 0 5px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.1) !important;
            }
            
            .all-teams-table td:first-child {
                min-width: 70px !important;
                max-width: 70px !important;
                width: 70px !important;
                white-space: normal !important;
                word-break: keep-all !important;
                line-height: 1.2 !important;
                padding: 4px 3px !important;
                font-size: var(--font-xs) !important;
                /* 좌우 스티키 적용 (상하는 일반 스크롤) */
                position: sticky !important;
                left: 0 !important;
                z-index: 10 !important;
                background: #f8f9fa !important;
                border-right: 2px solid #dee2e6 !important;
                box-shadow: 2px 0 5px rgba(0,0,0,0.1) !important;
            }
            
            /* 날짜 색상 클래스 우선 적용 (주말/연휴 빨간색) */
            .all-teams-table td.date-cell.weekend-date,
            .all-teams-table td.date-cell.holiday-date {
                color: #dc2626 !important;
                font-weight: var(--font-weight-semibold) !important;
            }
            
            .all-teams-table td.date-cell.weekday-date {
                color: #1f2937 !important;
                font-weight: var(--font-weight-medium) !important;
            }
            
            /* 모바일 공휴일명 스타일링 */
            .all-teams-table td.date-cell small {
                font-size: var(--font-2xs) !important;
                color: #dc2626 !important;
                font-weight: var(--font-weight-medium) !important;
                display: block;
                margin-top: 1px;
            }
        }

        /* 스티키 테이블 헤더 */
        .table-scroll-wrapper .weekly-table thead th,
        .table-scroll-wrapper .game-record-table thead th,
        .table-scroll-wrapper .all-teams-table thead th,
        .table-scroll-wrapper .detailed-game-table thead th,
        .table-scroll-wrapper .series-stats-table thead th,
        .table-scroll-wrapper .streak-records-table thead th {
            position: sticky;
            top: 0;
            background: #34495e;
            color: white;
            z-index: 50;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }

        /* 주차별 테이블 헤더를 하나의 통합된 스티키 블록으로 처리 */
        .table-scroll-wrapper .weekly-table thead {
            position: sticky;
            top: 0;
            z-index: 100;
            background: #34495e; /* thead 전체 배경 */
            box-shadow: var(--sticky-shadow-soft); /* 통일된 헤더 그림자 */
        }

        /* Prevent transforms/filters from breaking sticky on mobile */
        @media (max-width: 768px) {
            .table-container * {
                transform: none !important;
                filter: none !important;
            }
        }
        
        /* 모든 헤더 셀에 통일된 스타일 적용 */
        .table-scroll-wrapper .weekly-table thead th {
            background: #34495e !important;
            color: white !important;
            border: 1px solid #495057;
            position: relative; /* 클릭 이벤트가 작동하도록 변경 */
            white-space: nowrap; /* 헤더 텍스트 줄바꿈 방지 */
        }

        .weekly-table th, .weekly-table td,
        .game-record-table th, .game-record-table td,
        .detailed-game-table th, .detailed-game-table td,
        .series-stats-table th, .series-stats-table td,
        .streak-records-table th, .streak-records-table td,
        .unified-stats-table th, .unified-stats-table td {
            border: 1px solid #d1d5db;
            padding: 4px 4px;  /* 패딩 추가 축소 (5px 4px → 4px 4px) */
            text-align: center;
        }
        
        /* 전체 게임 테이블 패딩 통합 스타일 */
        #teamDetailedRecordsContent .all-teams-table th,
        #teamDetailedRecordsContent .all-teams-table td {
            border: 1px solid #d1d5db !important;
            text-align: center !important;
            min-width: 40px !important;
        }
        
        #teamDetailedRecordsContent .all-teams-table th {
            padding: 7px 5px !important;
            line-height: 1.4 !important;
            background: #34495e !important;
            color: white !important;
        }
        
        #teamDetailedRecordsContent .all-teams-table td {
            padding: 1px 5px !important;
            line-height: 1.1 !important;
        }

        /* 밀도 높은 테이블 모드 */
        .table-scroll-wrapper.dense-mode .weekly-table td,
        .table-scroll-wrapper.dense-mode .all-teams-table td,
        .table-scroll-wrapper.dense-mode .detailed-game-table td,
        .table-scroll-wrapper.dense-mode .series-stats-table td,
        .table-scroll-wrapper.dense-mode .streak-records-table td {
            padding: 4px 3px;  /* 더 작은 패딩 옵션 */
            font-size: var(--font-xs);
        }

        /* 테이블 행 높이 최적화 */
        .table-scroll-wrapper tr {
            line-height: 1.3;  /* 라인 높이 감소 */
        }

        /* 게임 기록 테이블 특별 스타일 */
        .all-teams-table td,
        .detailed-game-table td,
        .series-stats-table td,
        .streak-records-table td {
            white-space: nowrap;  /* 텍스트 줄바꿈 방지 */
        }

        .weekly-table th, .game-record-table th, .detailed-game-table th, .all-teams-table th,
        .series-stats-table th, .streak-records-table th, .unified-stats-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-lg);
            font-family: var(--font-family-base);
            padding: 15px 8px;
            text-align: center;
        }
        
        /* 주차별 테이블 기본 헤더 스타일 */
        .weekly-table th {
            font-size: var(--font-lg) !important;
            text-align: center;
            padding: 12px 8px !important;
        }
        
        /* rowspan 헤더 (주차, 기간) */
        .weekly-table th[rowspan="2"] {
            font-size: var(--font-lg) !important;
            font-weight: var(--font-weight-bold);
            min-width: 80px;
            vertical-align: middle;
            padding: 12px 8px !important;
        }
        
        /* colspan 헤더 (팀별 성적) */
        .weekly-table th[colspan], .detail-table th[colspan] {
            text-align: center;
            font-weight: var(--font-weight-semibold);
            padding: 12px 8px !important;
            font-size: var(--font-lg) !important;
            background: #2c3e50 !important;
            color: white !important;
            border-bottom: 2px solid #34495e !important;
        }
        
        /* 팀명 헤더 */
        .weekly-table .team-header {
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-semibold);
            padding: 12px 8px !important;
            min-width: 100px;
            z-index: 101; /* 클릭 이벤트를 위해 z-index 추가 */
            position: relative;
        }

        .team-header, .team-header-column {
            background: #34495e !important;
            color: white !important;
            font-weight: var(--font-weight-bold);
        }

        /* 주차별 성적 팀명 헤더 정렬 기능 스타일 */
        .sortable-team {
            transition: background-color 0.2s ease;
        }

        .sortable-team:hover {
            background: #2c3e50 !important;
            cursor: pointer;
        }


        .week-cell, .game-number-cell, .game-num-cell {
            font-weight: var(--font-weight-bold);
            color: #2c3e50;
            font-size: var(--font-sm);
        }

        .date-cell {
            font-size: var(--font-base);
            white-space: nowrap;
            color: #2c3e50;
            padding: 8px 12px;
            text-align: center;
            background: #f8f9fa;
            font-weight: var(--font-weight-medium);
        }

        .team-stats {
            padding: 8px 6px;
        }

        .record {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
            font-size: var(--font-md);
            color: #1a202c;
        }

        .win-rate {
            font-family: var(--winrate-font-family);
            font-size: var(--font-sm);
            color: #2d3748;
            margin-top: 3px;
            font-weight: var(--winrate-font-weight);
        }

        /* 승률 표기 통일 스타일 */
        .baseball-winrate {
            font-family: var(--winrate-font-family);
            font-weight: var(--winrate-font-weight);
            font-size: var(--winrate-font-size);
            color: #2d3748;
        }

        .baseball-winrate-cell {
            font-family: var(--winrate-font-family);
            font-weight: var(--font-weight-bold);
            font-size: var(--winrate-font-size);
            text-align: center;
        }

        .baseball-winrate-inline {
            font-family: var(--winrate-font-family);
            font-weight: var(--font-weight-medium);
            font-size: var(--winrate-font-size);
        }

        /* 유틸리티 폰트 클래스 - 재사용성을 위해 */
        .font-data {
            font-family: var(--data-font-family);
            font-weight: var(--data-font-weight);
            font-size: var(--data-font-size);
        }
        
        .font-winrate {
            font-family: var(--winrate-font-family);
            font-weight: var(--winrate-font-weight);
            font-size: var(--winrate-font-size);
        }
        
        .font-data-bold {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
            font-size: var(--data-font-size);
        }

        /* 모든 테이블 셀의 기본 폰트 통일 */
        table td {
            font-family: var(--data-font-family);
        }
        
        /* strong 태그 폰트 통일 */
        table strong {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
        }
        
        /* 숫자 데이터 표시용 강제 스타일 */
        #fullStandingsTable td,
        #pythagoreanTable td,
        #clutchTable td {
            font-family: var(--data-font-family);
            font-weight: var(--data-font-weight);
        }
        
        #fullStandingsTable strong,
        #pythagoreanTable strong, 
        #clutchTable strong {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
        }
        
        /* 승률 표시 컬럼들에 모노스페이스 폰트 적용 */
        #fullStandingsTable td:nth-child(8),  /* 승률 컬럼 */
        #fullStandingsTable td:nth-child(12), /* 홈승률 컬럼 */
        #fullStandingsTable td:nth-child(14), /* 원정승률 컬럼 */
        #pythagoreanTable td:nth-child(3),    /* 실제승률 컬럼 */
        #pythagoreanTable td:nth-child(4),    /* 기대승률 컬럼 */
        #clutchTable td:nth-child(5),         /* 1점차승률 컬럼 */
        #clutchTable td:nth-child(8),         /* 3점차승률 컬럼 */
        #clutchTable td:nth-child(13) {       /* 클러치지수 컬럼 */
            font-family: var(--winrate-font-family) !important;
            font-weight: var(--winrate-font-weight) !important;
        }
        
        /* 모든 테이블의 td 요소에만 강제 폰트 적용 (th는 제외) */
        table td *, table strong, table b, table span {
            font-family: inherit !important;
            font-weight: inherit !important;
        }
        
        /* 테이블 헤더는 별도로 폰트 강제 적용 - 최우선순위 */
        table th,
        .full-standings-table th,
        .detail-table th,
        .matrix-table th,
        #monthlyTable th,
        .weekly-table th,
        .all-teams-table th,
        .detailed-game-table th,
        .series-stats-table th,
        .streak-records-table th,
        #weekdayTable th,
        th[style*="font-size"] {
            font-family: var(--font-family-base) !important;
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-semibold) !important;
        }
        
        /* 모든 테이블 헤더에 대한 최우선 적용 (주차별 테이블 제외) */
        * th:not(.weekly-table th):not(.game-record-table th) {
            font-family: var(--font-family-base) !important;
            font-size: var(--font-base) !important;
        }
        
        /* 승률 관련 헤더 특별 처리 - 절대 우선순위 */
        table th:nth-child(8),   /* 승률 헤더 */
        table th:nth-child(14),  /* P승률 헤더 */
        table th:nth-child(16),  /* 1점차승률 헤더 */
        table th:nth-child(17),  /* 홈승률 헤더 */
        table th:nth-child(19),  /* 원정승률 헤더 */
        #fullStandingsTable th:nth-child(8),
        #fullStandingsTable th:nth-child(12),
        #fullStandingsTable th:nth-child(14) {
            font-family: var(--font-family-base) !important;
            font-size: var(--font-base) !important;
            font-weight: var(--font-weight-semibold) !important;
        }
        
        /* 숫자가 포함된 모든 셀에 데이터 폰트 강제 적용 */
        table td:not(.team-name):not(.opponent-cell):not(.date-cell):not(.venue-cell):not(.result-cell) {
            font-family: var(--data-font-family) !important;
            font-weight: var(--data-font-weight) !important;
        }
        
        /* 팀명과 텍스트 셀 제외한 모든 strong 태그 */
        table td:not(.team-name):not(.opponent-cell):not(.date-cell):not(.venue-cell):not(.result-cell) strong,
        table td:not(.team-name):not(.opponent-cell):not(.date-cell):not(.venue-cell):not(.result-cell) b {
            font-family: var(--data-font-family) !important;
            font-weight: var(--font-weight-bold) !important;
        }


        .team-selector {
            text-align: center;
            margin: 15px 0;
        }

        /* 탑으로 가기 버튼 스타일 - magic-number 스타일 적용 */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #1a237e;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            z-index: 9999;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            transform: translateY(20px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .scroll-to-top:hover {
            background: #3949ab;
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }

        .scroll-to-top.show:hover {
            transform: translateY(-2px);
        }

        .scroll-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* 모바일에서 버튼 크기 조정 */
        @media (max-width: 768px) {
            .scroll-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }

        /* 플로팅 공유 버튼 스타일 */
        .floating-share {
            position: fixed;
            bottom: 90px;
            right: 30px;
            z-index: 1000;
        }

        .share-label {
            text-align: center;
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
            font-weight: 500;
        }

        .share-toggle {
            width: 50px;
            height: 50px;
            background: #1a237e;
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        .share-toggle:hover {
            background: #3949ab;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }


        .share-options {
            position: absolute;
            bottom: 60px;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            padding: 8px;
            min-width: 160px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .share-options.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .share-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 12px;
            border: none;
            background: none;
            color: #333;
            cursor: pointer;
            border-radius: 8px;
            transition: background-color 0.2s ease;
            font-size: 14px;
        }

        .share-btn:hover {
            background-color: #f5f5f5;
        }

        .share-btn svg {
            flex-shrink: 0;
        }

        /* 모바일에서 공유 버튼 조정 */
        @media (max-width: 768px) {
            .floating-share {
                bottom: 70px;
                right: 20px;
            }
            
            .share-toggle {
                width: 45px;
                height: 45px;
            }
            
            .share-options {
                min-width: 140px;
                bottom: 50px;
            }
        }

        .team-selector select {
            padding: 8px 16px;
            font-size: var(--font-base);
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background: white;
        }

        .streak-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            background: #f8fafc;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .streak-item {
            text-align: center;
        }

        .streak-label {
            display: block;
            font-size: var(--font-sm);
            color: #718096;
            margin-bottom: 5px;
        }

        .streak-value {
            display: block;
            font-size: var(--font-xl);
            font-weight: var(--font-weight-semibold);
        }

        .win-streak {
            color: #38a169;
        }

        .lose-streak {
            color: #e53e3e;
        }


        .result-badge {
            padding: 4px 8px;
            border-radius: 8px;
            font-size: var(--font-xs);
            font-weight: var(--font-weight-semibold);
            color: white;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

        .result-badge.w {
            background: #27ae60;
        }

        .result-badge.l {
            background: #e74c3c;
        }

        .result-badge.d {
            background: #f39c12;
        }

        .result-badge.cancelled {
            background: #f8f9fa;
            color: #6b7280;
            border: 1px solid #e5e7eb;
            font-weight: normal;
        }

        /* 연승/연패 색상 스타일 - 폰트 색상 */
        .streak-hot {
            color: #e74c3c !important;
            font-weight: var(--font-weight-bold);
        }
        
        .streak-warm {
            color: #f39c12 !important;
            font-weight: var(--font-weight-semibold);
        }
        
        .streak-neutral {
            color: #7f8c8d !important;
        }
        
        .streak-cool {
            color: #e67e22 !important;
            font-weight: var(--font-weight-semibold);
        }
        
        .streak-cold {
            color: #3498db !important;
            font-weight: var(--font-weight-bold);
        }


        .all-teams-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--font-md);
        }

        /* 이 스타일 블록 제거 - 위에서 더 구체적으로 정의됨 */

        .all-teams-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-base);
            font-family: var(--font-family-base);
        }

        .team-header-column {
            background: #34495e !important;
            color: white !important;
            font-weight: 900;
            font-size: var(--font-md);
            text-shadow: 0 1px 2px rgba(0,0,0,0.4);
        }

        .game-number-cell {
            font-weight: var(--font-weight-bold);
            background: #fff3e0;
            font-size: var(--font-xs);
        }

        .game-result-cell {
            position: relative;
            padding: 4px;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-xs);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .game-result-cell:hover {
            transform: scale(1.1);
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .cell-win {
            background: var(--positive-bg-medium);
            color: var(--positive-color);
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-sm);
        }

        .cell-loss {
            background: var(--negative-bg-medium);
            color: var(--negative-color);
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-sm);
        }

        .cell-draw {
            background: var(--neutral-bg-medium);
            color: var(--neutral-color);
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-sm);
        }

        .cell-cancelled {
            background: #f8f9fa;
            color: #9ca3af;
            font-weight: normal;
            font-size: var(--font-sm);
            opacity: 0.8;
        }

        .win-row {
            color: var(--positive-color);
            font-size: var(--font-sm);
        }

        .loss-row {
            color: var(--negative-color);
            font-size: var(--font-sm);
        }

        .draw-row {
            color: #f59e0b;
            font-size: var(--font-sm);
        }

        .cancelled-row {
            color: #9ca3af;
            background-color: #f9fafb;
            opacity: 0.7;
            font-size: var(--font-sm);
        }

        .cell-empty {
            background: #f8fafc;
            color: #9ca3af;
        }

        .result-display {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1px;
        }

        .streak-number {
            font-size: var(--font-base);
            font-weight: var(--font-weight-bold);
            line-height: 1;
        }

        .result-letter {
            font-size: var(--font-xs);
            font-weight: var(--font-weight-semibold);
            opacity: 0.9;
        }

        /* 무승부일 때 글자 크기를 연승/연패 숫자만큼 크게 */
        .result-letter.draw-result {
            font-size: var(--font-base);
            font-weight: 900;
            opacity: 1;
            line-height: 1;
        }

        /* 취소된 경기일 때 연하게 */
        .result-letter.cancelled-result {
            font-size: var(--font-xs);
            font-weight: normal;
            opacity: 0.6;
            color: #9ca3af;
        }

        .combined-result {
            font-size: var(--font-base);
            font-weight: var(--font-weight-bold);
            line-height: 1;
            display: inline-block;
        }

        .legend {
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .legend-item {
            display: flex;
            align-items: center;
            font-size: var(--font-md);
            color: #4a5568;
        }

        /* 팀별 상세 기록 스타일 제거됨 - wrapper 레이어 제거 */

        .team-stats-summary {
            background: white;
            border-radius: 8px;
            padding: 8px 12px;
            margin-bottom: 12px;
            border: 1px solid #e2e8f0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 12px;
        }

        .stat-card {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 12px 8px;
            text-align: center;
            border: 1px solid #e9ecef;
        }

        .stat-card:hover {
            background: #e9ecef;
        }

        .stat-title {
            font-size: var(--font-xs);
            color: #718096;
            margin-bottom: 4px;
            font-weight: var(--font-weight-medium);
            line-height: 1.2;
        }

        .stat-number {
            font-size: var(--font-xl);
            font-weight: var(--font-weight-bold);
            color: #2d3748;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .stat-subtitle {
            font-size: var(--font-2xs);
            color: #a0aec0;
            font-weight: 400;
            line-height: 1.2;
        }

        .win-color {
            color: #38a169 !important;
        }

        .loss-color {
            color: #e53e3e !important;
        }

        /* 예정 경기 구분선 스타일 */
        .future-games-divider {
            background: #e9ecef;
            border-top: 2px solid #6c757d;
        }
        
        .future-games-divider td {
            text-align: center;
            padding: 12px 8px;
            font-weight: 600;
            color: #495057;
            font-size: 14px;
        }

        /* 게임별 기록 테이블 경기# 셀 스타일 */
        .game-number-cell,
        .all-teams-table td:first-child {
            text-align: center !important;
            font-weight: var(--font-weight-bold);
            font-size: var(--font-base);
            padding: 8px;
        }

        /* 5경기 단위 구분선 스타일 */
        .all-teams-table tr.fifth-game-separator td {
            border-bottom: 1px solid rgba(52, 73, 94, 0.25) !important;
        }

        .detailed-game-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            font-size: var(--font-base);
        }

        .detailed-game-table th,
        .detailed-game-table td {
            border: 1px solid #d1d5db;
            padding: 5px 6px;
            text-align: center;
            vertical-align: middle;
            white-space: nowrap;
            font-size: var(--font-base);
        }

        .detailed-game-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .sortable-table th.sortable,
        .detailed-game-table th.sortable {
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
        }

        .sortable-table th.sortable:hover,
        .detailed-game-table th.sortable:hover {
            background: #2c3e50;
            transform: translateY(-1px);
        }

        .detailed-game-table tbody tr:hover {
            background-color: #f8f9fa;
        }

        .detailed-game-table tbody tr:nth-child(even) {
            background-color: #fdfdfd;
        }

        .detailed-game-table tbody tr:nth-child(even):hover {
            background-color: #f8f9fa;
        }

        .series-stats-table {
            background: white;
            table-layout: auto;
            max-width: 100%;
            width: 100%;
            white-space: nowrap;
            border-collapse: collapse;
            margin-top: 0;
            font-size: var(--font-base);
        }

        .series-analysis-container {
            margin: 0;
        }

        .series-stats-table th {
            padding: 8px 6px;
            text-align: center;
            border: 1px solid #d1d5db;
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-family: var(--font-family-base);
            white-space: nowrap;
        }

        .series-stats-table th.sortable {
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
        }

        .series-stats-table th.sortable:hover {
            background: #2c3e50;
            transform: translateY(-1px);
        }

        .series-stats-table td {
            padding: 8px 6px;
            border: 1px solid #d1d5db;
            white-space: nowrap;
            vertical-align: middle;
        }

        .series-stats-table tbody tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .series-stats-table tbody tr:hover {
            background-color: #f0f8ff;
        }

        .streak-records-table {
            background: white;
            width: 100%;
            border-collapse: collapse;
            font-size: var(--font-base);
            margin-top: 0;
        }

        .streak-records-table th,
        .streak-records-table td {
            padding: 8px 6px;
            text-align: center;
            border: 1px solid #d1d5db;
            white-space: nowrap;
        }

        .streak-records-table th {
            background: #34495e;
            color: white;
            font-weight: var(--font-weight-semibold);
            font-size: var(--font-base);
            font-family: var(--font-family-base);
            cursor: pointer;
            transition: background 0.2s ease;
            user-select: none;
            position: relative;
        }

        .streak-records-table th:hover {
            background: #2c3e50;
        }

        .streak-records-table th.sortable::after,
        .streak-records-table th.sort-asc::after,
        .streak-records-table th.sort-desc::after {
            content: '';
        }

        .streak-records-table .rank-header {
            width: 40px;
            min-width: 40px;
            max-width: 40px;
        }

        .streak-records-table .team-header {
            width: 70px;
            min-width: 70px;
            max-width: 70px;
        }

        .streak-records-table .section-header {
            font-size: var(--font-lg) !important;
            background: #2c3e50 !important;
            color: white !important;
            border-bottom: 2px solid #34495e !important;
            padding: 12px 8px !important;
        }

        .streak-records-table .wins-section,
        .streak-records-table .losses-section {
            background: #2c3e50 !important;
        }

        .streak-records-table .max-header {
            width: 35px;
            min-width: 35px;
            max-width: 35px;
            font-size: var(--font-xs) !important;
            line-height: 1.1;
        }

        .streak-records-table .streak-count-header {
            width: 35px;
            min-width: 35px;
            max-width: 35px;
            font-size: 11px !important;
        }

        table.streak-records-table thead tr.sub-header th.streak-count-header,
        .streak-records-table .streak-count-header.wins-count,
        .streak-records-table .streak-count-header.losses-count,
        #streakRecordsTable thead th[class*="streak-count-header"] {
            font-size: 11px !important;
            font-family: var(--font-family-base) !important;
        }

        .streak-records-table .rank-cell {
            width: 40px;
            min-width: 40px;
            max-width: 40px;
            font-weight: var(--font-weight-bold);
            text-align: center;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            color: #495057;
        }

        .streak-records-table .team-cell {
            width: 70px;
            min-width: 70px;
            max-width: 70px;
            font-weight: var(--font-weight-semibold);
            text-align: center;
        }

        .streak-records-table .streak-count-cell {
            width: 35px;
            min-width: 35px;
            max-width: 35px;
            font-size: var(--font-sm);
        }

        .streak-records-table .streak-count-cell.has-data {
            font-weight: var(--font-weight-semibold);
            color: #495057;
        }

        .streak-records-table .streak-count-cell.no-data {
            color: #6c757d;
            opacity: 0.7;
        }

        .streak-records-table .max-streak-cell {
            width: 35px;
            min-width: 35px;
            max-width: 35px;
            font-weight: var(--font-weight-bold);
            font-size: var(--font-sm);
        }

        .streak-records-table .max-wins-cell {
            background: rgba(76, 175, 80, 0.1);
            color: #2e7d32;
        }

        .streak-records-table .max-losses-cell {
            background: rgba(244, 67, 54, 0.1);
            color: #c62828;
        }

        .streak-records-table tbody tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .streak-records-table tbody tr:hover {
            background-color: #f0f8ff;
        }

        .streak-records-table .rank-1 {
            background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
            color: #8b5a00 !important;
            font-weight: var(--font-weight-bold) !important;
        }

        .streak-records-table .rank-2 {
            background: linear-gradient(135deg, #e8e8e8, #c0c0c0) !important;
            color: #4a4a4a !important;
            font-weight: var(--font-weight-bold) !important;
        }

        .streak-records-table .rank-3 {
            background: linear-gradient(135deg, #cd7f32, #b8860b) !important;
            color: #ffffff !important;
            font-weight: var(--font-weight-bold) !important;
        }

        .streak-records-table .has-data {
            font-weight: var(--font-weight-semibold);
            color: #2d3748;
        }

        .streak-records-table .no-data {
            color: #9ca3af;
        }

        @media (max-width: 768px) {
            .series-stats-table {
                font-size: var(--font-base);
                table-layout: fixed !important;
                width: 600px;
                max-width: 600px;
                min-width: 600px;
            }

            .series-stats-table th,
            .series-stats-table td {
                padding: 6px 2px;
            }

            #seriesStatsTable th:nth-child(1),
            #seriesStatsTable td:nth-child(1) {
                width: 30px;
                min-width: 30px;
                max-width: 30px;
            }

            #seriesStatsTable th:nth-child(2),
            #seriesStatsTable td:nth-child(2) {
                width: 70px;
                min-width: 70px;
                max-width: 70px;
            }

            #seriesStatsTable th:nth-child(3),
            #seriesStatsTable td:nth-child(3) {
                width: 50px;
                min-width: 50px;
                max-width: 50px;
            }

            #seriesStatsTable th:nth-child(4),
            #seriesStatsTable td:nth-child(4) {
                width: 30px;
                min-width: 30px;
                max-width: 30px;
            }

            #seriesStatsTable th:nth-child(5),
            #seriesStatsTable td:nth-child(5) {
                width: 30px;
                min-width: 30px;
                max-width: 30px;
            }

            #seriesStatsTable th:nth-child(6),
            #seriesStatsTable td:nth-child(6) {
                width: 20px;
                min-width: 20px;
                max-width: 20px;
            }

            #seriesStatsTable th:nth-child(7),
            #seriesStatsTable td:nth-child(7) {
                width: 70px;
                min-width: 70px;
                max-width: 70px;
            }

            #seriesStatsTable th:nth-child(8),
            #seriesStatsTable td:nth-child(8) {
                width: 50px;
                min-width: 50px;
                max-width: 50px;
            }

            #seriesStatsTable th:nth-child(9),
            #seriesStatsTable td:nth-child(9) {
                width: 50px;
                min-width: 50px;
                max-width: 50px;
            }

            #seriesStatsTable th:nth-child(10),
            #seriesStatsTable td:nth-child(10) {
                width: 75px;
                min-width: 75px;
                max-width: 75px;
            }

            .streak-records-table {
                font-size: var(--font-sm);
            }

            .streak-records-table th,
            .streak-records-table td {
                padding: 6px 4px;
            }

            .streak-records-table .section-header {
                font-size: var(--font-base) !important;
                padding: 10px 6px !important;
            }

            .streak-records-table .streak-count-header {
                font-size: 9px !important;
                width: 30px;
                min-width: 30px;
                max-width: 30px;
            }

            table.streak-records-table thead tr.sub-header th.streak-count-header,
            .streak-records-table thead th.streak-count-header.wins-count,
            .streak-records-table thead th.streak-count-header.losses-count,
            #streakRecordsTable thead th[class*="streak-count-header"] {
                font-size: 9px !important;
            }

            .streak-records-table .streak-count-cell {
                width: 30px;
                min-width: 30px;
                max-width: 30px;
                font-size: var(--font-xs);
            }

            .streak-records-table .max-header {
                width: 28px;
                min-width: 28px;
                max-width: 28px;
                font-size: 10px !important;
            }

            .streak-records-table .max-streak-cell {
                width: 28px;
                min-width: 28px;
                max-width: 28px;
                font-size: 10px;
            }
        }

        .unified-stats-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            font-size: var(--font-base);
        }

        .game-num-cell {
            font-weight: var(--font-weight-bold);
            color: #d97706;
            width: 70px;
            max-width: 70px;
            text-align: center;
        }

        .date-cell {
            font-size: var(--font-sm);
            color: #2d3748;
            font-weight: var(--font-weight-medium);
            width: 180px;
            max-width: 180px;
            text-align: center;
            white-space: nowrap;
            overflow: visible;
            text-overflow: clip;
        }

        .weekday-date {
            color: #1f2937;
            font-weight: var(--font-weight-medium);
        }

        .weekend-date {
            color: #dc2626;
            font-weight: var(--font-weight-semibold);
        }

        .holiday-date {
            color: #dc2626;
            font-weight: var(--font-weight-semibold);
        }

        /* 전체 팀 날짜별 테이블 날짜 색상 강제 적용 */
        .all-teams-table td.date-cell.weekend-date,
        .all-teams-table td.date-cell.holiday-date {
            color: #dc2626 !important;
            font-weight: var(--font-weight-semibold) !important;
        }
        
        .all-teams-table td.date-cell.weekday-date {
            color: #1f2937 !important;
            font-weight: var(--font-weight-medium) !important;
        }

        /* 공휴일명 스타일링 */
        .all-teams-table td.date-cell small {
            font-size: var(--font-3xs) !important;
            color: #dc2626 !important;
            font-weight: var(--font-weight-medium) !important;
            display: block;
            margin-top: 2px;
        }

        .opponent-cell {
            font-weight: var(--font-weight-semibold);
            color: #1a202c;
        }

        .venue-cell {
            font-size: var(--font-sm);
            color: #2d3748;
            font-weight: var(--font-weight-medium);
        }

        .home-venue {
            color: #2563eb;
            font-weight: var(--font-weight-semibold);
        }

        .away-venue {
            color: #dc2626;
            font-weight: var(--font-weight-semibold);
        }

        .score-cell {
            font-family: var(--data-font-family);
            font-weight: var(--data-font-weight);
            font-size: var(--data-font-size);
            text-align: center;
        }

        .runs-cell {
            font-family: var(--data-font-family);
            font-weight: var(--data-font-weight);
            font-size: var(--data-font-size);
            text-align: center;
        }

        .diff-cell {
            font-family: var(--data-font-family);
            font-weight: var(--font-weight-bold);
            font-size: var(--data-font-size);
            text-align: center;
        }

        .diff-cell.positive {
            color: #27ae60;
            font-weight: var(--font-weight-semibold);
        }

        .diff-cell.negative {
            color: #e74c3c;
            font-weight: var(--font-weight-semibold);
        }

        .diff-cell.neutral {
            color: #34495e;
        }


        /* 네비게이션 스타일 */
        .navigation {
            position: sticky;
            top: 0;
            z-index: 1000;
            margin-bottom: 10px;
            padding: 8px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 16px;
            overflow: hidden;
        }

        .navigation::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: var(--card-width);
            max-width: var(--card-max-width);
            height: 100%;
            background: var(--card-background);
            backdrop-filter: var(--card-backdrop-filter);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: var(--card-border-radius);
            z-index: -1;
        }

        .nav-container {
            width: var(--card-width) !important;
            max-width: var(--card-max-width) !important;
            margin: 0 auto;
            padding: 0;
            box-sizing: border-box;
        }

        .nav-menu {
            display: flex;
            justify-content: flex-start;
            gap: 2px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            flex-wrap: nowrap;
        }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

        .nav-item {
            white-space: nowrap;
            padding: 8px 12px;
            font-size: var(--font-base);
            font-weight: var(--font-weight-medium);
            color: #4a5568;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            text-align: center;
            min-width: 90px;
            display: inline-block;
        }

        .nav-item:hover {
            background: rgba(66, 153, 225, 0.15);
            color: #2563eb;
            border-color: rgba(66, 153, 225, 0.3);
            transform: translateY(-1px);
        }

        .nav-item.active {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            font-weight: var(--font-weight-semibold);
            border-color: #2563eb;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }

        .nav-item.active:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        }

        /* 전반기/후반기 테이블 CSS 클래스 */
        .half-season-table {
            width: 100%;
            min-width: 1200px;
            font-size: 0.9rem;
            border-collapse: collapse;
        }

        .table-scroll-wrapper.half-season-scroll-wrapper {
            max-height: none;
            overflow-y: visible;
            overflow-x: auto;
        }

        .half-season-header {
            font-size: 0.8rem;
            padding: 3px 2px;
            border-right: 1px solid #ddd;
            vertical-align: middle;
        }

        .half-season-header.rank-cell {
            width: 30px;
            cursor: pointer;
        }

        .half-season-header.team-cell {
            width: 80px;
        }

        .half-season-header.current-header {
            text-align: center;
            border-bottom: 1px solid #ddd;
            background: #f8f9fa;
        }

        .half-season-header.first-half-main {
            text-align: center;
            border-bottom: 1px solid #ddd;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
        }

        .half-season-header.second-half-main {
            text-align: center;
            border-bottom: 1px solid #ddd;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }

        .half-season-header.change-cell {
            width: 70px;
            border-left: 1px solid #ddd;
            cursor: pointer;
        }

        .half-season-header.sub-group-first {
            text-align: center;
            border-bottom: 1px solid #ddd;
            padding: 1px;
            background: rgba(59, 130, 246, 0.1);
        }

        .half-season-header.sub-group-first.last {
            border-right: 1px solid #ddd;
        }

        .half-season-header.sub-group-second {
            text-align: center;
            border-bottom: 1px solid #ddd;
            padding: 1px;
            background: rgba(16, 185, 129, 0.1);
        }

        .half-season-header.current-record {
            width: 70px;
            padding: 4px 2px;
            background: #f8f9fa;
            border-bottom: 1px solid #ddd;
            white-space: nowrap;
        }

        .half-season-header.current-winrate {
            width: 50px;
            padding: 4px 2px;
            background: #f8f9fa;
            border-bottom: 1px solid #ddd;
            border-right: 1px solid #ddd;
            cursor: pointer;
        }

        .half-season-header.detail-first {
            padding: 1px;
            background: rgba(59, 130, 246, 0.05);
            border-bottom: 1px solid #ddd;
        }

        .half-season-header.detail-first.games {
            width: 30px;
            cursor: pointer;
        }

        .half-season-header.detail-first.record {
            width: 70px;
        }

        .half-season-header.detail-first.winrate {
            width: 50px;
            cursor: pointer;
        }

        .half-season-header.detail-first.rank {
            width: 30px;
            cursor: pointer;
        }

        .half-season-header.detail-first.runs {
            width: 50px;
            cursor: pointer;
        }

        .half-season-header.detail-first.last {
            border-right: 1px solid #ddd;
        }

        .half-season-header.detail-second {
            padding: 1px;
            background: rgba(16, 185, 129, 0.05);
            border-bottom: 1px solid #ddd;
        }

        .half-season-header.detail-second.games {
            width: 30px;
            cursor: pointer;
        }

        .half-season-header.detail-second.record {
            width: 70px;
        }

        .half-season-header.detail-second.winrate {
            width: 50px;
            cursor: pointer;
        }

        .half-season-header.detail-second.rank {
            width: 30px;
            cursor: pointer;
        }

        .half-season-header.detail-second.runs {
            width: 50px;
            cursor: pointer;
        }

        /* 전반기/후반기 헤더 색상 통일 (다른 테이블 헤더 톤과 동일) */
        #half-season-table thead th.half-season-header {
            background: #34495e !important;
            color: #ffffff !important;
            border-color: #495057 !important;
        }

        #half-season-table thead tr:nth-child(2) th.half-season-header {
            background: #2c3e50 !important;
        }

        /* 전반기/후반기 구분 인디케이터 */
        #half-season-table .half-season-header.first-half-main,
        #half-season-table .half-season-header.sub-group-first.last,
        #half-season-table .half-season-header.detail-first.last,
        #half-season-table .half-season-data.first-half.lose-streak.last {
            border-right: 3px solid #f59e0b !important;
        }

        #half-season-table .half-season-header.first-half-main {
            position: relative;
        }

        #half-season-table .half-season-header.first-half-main::after {
            content: '⇆';
            position: absolute;
            right: -12px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            border-radius: 50%;
            background: #f59e0b;
            color: #111827;
            font-size: 12px;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 0 0 2px #ffffff;
        }

        @media (max-width: 768px) {
            #half-season-table .half-season-header.first-half-main::after {
                display: none;
            }
        }

        /* 전반기/후반기 테이블 데이터 셀 CSS 클래스 */
        .half-season-data {
            text-align: center;
            font-size: 0.9rem;
            padding: 4px 2px;
        }

        .half-season-data.rank {
            font-weight: 600;
            border-right: 1px solid #ddd;
        }

        .half-season-data.team {
            border-right: 1px solid #ddd;
        }

        .half-season-data.current {
            background: #f8f9fa;
        }

        .half-season-data.current.winrate {
            font-weight: 500;
            border-right: 1px solid #ddd;
        }

        .half-season-data.first-half {
            background: rgba(59, 130, 246, 0.02);
        }

        .half-season-data.first-half.winrate {
            font-weight: 500;
        }

        .half-season-data.first-half.rank {
            font-weight: 600;
        }

        .half-season-data.first-half.last {
            border-right: 1px solid #ddd;
        }

        .half-season-data.second-half {
            background: rgba(16, 185, 129, 0.02);
        }

        .half-season-data.second-half.winrate {
            font-weight: 500;
        }

        .half-season-data.second-half.rank {
            font-weight: 600;
        }

        .half-season-data.performance {
            border-left: 1px solid #ddd;
            white-space: nowrap;
            font-weight: 600;
            font-size: 0.8rem;
        }

        .half-season-data.win-streak {
            color: #27ae60;
        }

        .half-season-data.lose-streak {
            color: #e74c3c;
        }

        /* 매직넘버 카드 스타일 */
        .magic-number-card {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border: none;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .magic-number-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
        }

        .magic-number-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 0;
        }

        .magic-number-left {
            display: flex;
            align-items: center;
            gap: 20px;
            min-width: 0;
            flex: 1;
        }

        .magic-number-right {
            flex-shrink: 0;
        }

        .magic-number-icon {
            font-size: 3rem;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
        }

        .magic-number-text h3 {
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 0 8px 0;
        }

        .magic-number-text p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            margin: 0;
            line-height: 1.5;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .magic-number-button {
            background: rgba(255, 255, 255, 0.95);
            color: #059669;
            text-decoration: none;
            padding: 14px 28px;
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 1);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 1.05rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .magic-number-button:hover {
            background: white;
            color: #047857;
            transform: translateX(4px) scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .magic-number-button .arrow {
            transition: transform 0.3s ease;
        }

        .magic-number-button:hover .arrow {
            transform: translateX(4px);
        }
        
        /* 매직넘버 버튼 플래시 애니메이션 */
        .magic-number-button {
            animation: magicFlash 2.5s infinite;
        }
        
        @keyframes magicFlash {
            0%, 70%, 100% {
                box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
            }
            75%, 85% {
                box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
                transform: translateY(-1px);
            }
        }
        
        /* 상대전적 매트릭스 펄스 애니메이션 */
        @keyframes matrixPulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.8;
            }
        }
        
        .matrix-pulse-advantage {
            animation: matrixPulse 2s ease-in-out infinite;
        }
        
        .matrix-pulse-disadvantage {
            animation: matrixPulse 2.5s ease-in-out infinite;
        }
        
        .magic-number-button:hover {
            animation-play-state: paused;
        }

        @media (max-width: 768px) {
            .magic-number-content {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }

            .magic-number-left {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .magic-number-icon {
                width: 70px;
                height: 60px;
                font-size: 2rem;
            }

            .magic-number-text h3 {
                font-size: 1.3rem;
            }

            .magic-number-text p {
                font-size: 0.9rem;
            }

            .magic-number-button {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 1024px) {
            .nav-menu {
                justify-content: flex-start;
                gap: 1px;
            }
            .nav-item {
                font-size: var(--font-sm);
                padding: 6px 8px;
                min-width: 70px;
                flex: none;
            }
        }

        @media (max-width: 768px) {
            .nav-item {
                font-size: var(--font-sm);
                padding: 6px 8px;
                min-width: 70px;
            }
            
            /* 모바일에서 팀 선택 탭 최적화 */
            .team-tabs {
                justify-content: flex-start !important;
                padding: 10px !important;
                gap: 4px !important;
            }
            
            .team-tab {
                font-size: var(--font-xs) !important;
                padding: 5px 8px !important;
                min-width: 65px !important;
                flex-shrink: 0 !important;
            }
            
            /* 전체 탭 기본 스타일 (다른 탭과 동일) */
            .team-tab:first-child:not(.active) {
                background: white !important;
                border-color: #dee2e6 !important;
                color: #666 !important;
                font-weight: var(--font-weight-medium) !important;
            }
        }

        /* 시즌 진행률 카드 스타일 */

        .team-progress-item {
            padding: 12px;
            background: #ffffff;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
        }

        .team-progress-bar {
            background: #e5e7eb;
            border-radius: 4px;
            height: 8px;
            overflow: hidden;
            margin: 8px 0;
        }

        .team-progress-fill {
            height: 100%;
            transition: width 1.2s ease-out;
            border-radius: 4px;
            will-change: width;
        }

        .team-progress-item:hover {
            border-color: #3b82f6;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
            transform: translateY(-2px);
        }

        .team-progress-bar {
            height: 8px;
            background: #f3f4f6;
            border-radius: 4px;
            overflow: hidden;
            margin: 8px 0;
        }

        .team-progress-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 1.5s ease-out;
            position: relative;
        }

        .team-progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
            /* 애니메이션 제거 - 정적인 글로우 효과만 */
        }

        /* Mobile Improvements */
        @media (max-width: 768px) {
            .nav-item {
                min-height: 44px;
                padding: 10px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            #scrollToTop {
                width: 56px;
                height: 56px;
            }
            
            /* Floating buttons touch target */
            .floating-btn, .share-toggle {
                min-width: 48px;
                min-height: 48px;
            }
        }
        
        /* Scroll to Top Button */
        #scrollToTop {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 48px;
            height: 48px;
            background: var(--primary-color, #1e40af);
            color: white;
            border: none;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            cursor: pointer;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        #scrollToTop.show {
            opacity: 1;
            visibility: visible;
        }
        
        #scrollToTop:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }

/* ===== Nav Drag Scroll Styles ===== */
        .nav-menu {
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
            scroll-behavior: smooth;
            padding: 0; /* 양쪽 여백 제거 */
            position: relative;
        }

        .nav-menu::before,
        .nav-menu::after {
            content: '';
            display: inline-block;
            width: 5px;
            height: 1px;
            flex-shrink: 0;
        }

        .nav-menu::-webkit-scrollbar { 
            display: none; /* WebKit browsers */
        }

        .nav-menu.dragging {
            scroll-behavior: auto;
        }

        .nav-menu.dragging .nav-item {
            pointer-events: none; /* 드래그 중 링크 클릭 방지 */
        }

        /* 네비게이션 아이템 간격을 원래대로 복원 */
        .nav-item {
            margin: 0 !important;
        }

        /* 네비게이션 화살표 블링크 애니메이션 */
        .nav-scroll-arrow {
            animation: navArrowBlink 2s ease-in-out infinite;
        }

        @keyframes navArrowBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.2; }
        }

        /* 매직넘버 네비게이션 아이템 - 개별적으로 플래싱 */
        .magic-number-nav {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
            color: white !important;
            font-weight: 600 !important;
            border: none !important;
            animation: magicNavFlash 2.5s infinite !important;
            position: relative !important;
            overflow: hidden !important;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2) !important;
        }

        /* 매직넘버 네비 아이템은 active 클래스 무시 */
        .magic-number-nav.active {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
            color: white !important;
            animation: magicNavFlash 2.5s infinite !important;
        }

        .magic-number-nav:hover {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
            color: white !important;
            animation-play-state: paused !important;
            transform: translateY(-4px) !important;
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3) !important;
        }

        @keyframes magicNavFlash {
            0%, 70%, 100% {
                box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
                transform: translateY(0);
            }
            15%, 55% {
                box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
                transform: translateY(-2px);
            }
        }

        /* 매직넘버 네비 아이템에 펄스 효과 추가 */
        .magic-number-nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
            animation: magicPulse 2s infinite;
            pointer-events: none;
        }

        @keyframes magicPulse {
            0%, 100% { opacity: 0; }
            50% { opacity: 1; }
        }

/* ===== Daily Stats Mobile Responsive ===== */
        /* 일별 통계 모바일 반응형 스타일 */
        @media (max-width: 768px) {
            .daily-stats-content-grid {
                grid-template-columns: 1fr !important;
            }
            
            .daily-stats-controls {
                flex-wrap: wrap !important;
                gap: 3px !important;
                justify-content: center !important;
            }
            
            .daily-stats-date-display {
                font-size: 12px !important;
                padding: 6px 10px !important;
                min-width: 130px !important;
                flex-shrink: 0;
            }
            
            .daily-stats-nav-buttons {
                gap: 2px !important;
            }
            
            .daily-stats-btn {
                padding: 6px 8px !important;
                font-size: 11px !important;
                flex-shrink: 0;
            }
            
            .daily-stats-date-input {
                padding: 6px 8px !important;
                font-size: 11px !important;
                width: 100px !important;
                flex-shrink: 0;
            }
            
            .daily-stats-animation-controls {
                gap: 2px !important;
            }
        }
        
        /* 버튼 호버 효과 */
        .daily-stats-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .daily-stats-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ===== Task 3: inline style migration for index.html ===== */
        .nav-scroll-container {
            position: relative;
        }

        .nav-scroll-arrow {
            animation: navArrowBlink 2s ease-in-out infinite;
        }

        .nav-scroll-arrow-left,
        .nav-scroll-arrow-right {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: auto;
            cursor: pointer;
            color: #ffffff;
            font-size: 20px;
            font-weight: bold;
            z-index: 100;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            border: none;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }

        .nav-scroll-arrow-left {
            left: 5px;
        }

        .nav-scroll-arrow-right {
            right: 5px;
        }

        .mobile-notice-card {
            margin-bottom: 8px;
            padding: 8px;
            background: rgba(255,255,255,0.1);
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .mobile-notice-note {
            font-size: 0.8rem;
            margin-bottom: 4px;
        }

        .mobile-notice-text {
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .mobile-notice-footer {
            margin-top: 6px;
        }

        .mobile-notice-link {
            color: #ffd700;
            text-decoration: underline;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .magic-number-landing-card {
            margin-bottom: 30px;
            padding: 28px 24px;
        }

        .magic-number-description {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        .season-progress-overall {
            margin-bottom: 25px;
        }

        .season-progress-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .season-progress-label {
            font-weight: 600;
            font-size: 1.1rem;
            color: #374151;
        }

        .season-progress-value {
            font-weight: 700;
            font-size: 1.2rem;
            color: #059669;
        }

        .season-progress-bar-track {
            background: #e5e7eb;
            border-radius: 10px;
            height: 20px;
            overflow: hidden;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .season-progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #10b981 0%, #059669 100%);
            width: 0%;
            transition: width 1.2s ease-out;
            border-radius: 10px;
            position: relative;
            will-change: width;
        }

        .season-progress-bar-shine {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        }

        .season-progress-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-size: 0.9rem;
            color: #6b7280;
        }

        .season-progress-section-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: #374151;
            margin-bottom: 15px;
            border-bottom: 2px solid #e5e7eb;
            padding-bottom: 8px;
        }

        .team-progress-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
            max-width: 100%;
        }

        .season-schedule-panel {
            margin-top: 15px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .season-schedule-title {
            font-size: var(--font-base);
            font-weight: var(--font-weight-medium);
            margin-bottom: 8px;
            color: #495057;
        }

        .season-schedule-body {
            font-size: var(--font-sm);
            color: #4b5563;
            line-height: 1.5;
        }

        .season-schedule-item {
            margin-bottom: 6px;
        }

        .sortable-header {
            cursor: pointer;
        }

        .loading-state-box {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .daily-stats-header {
            position: sticky;
            top: 58px;
            z-index: 100;
            margin-bottom: 15px;
            margin-top: 0;
            padding: 10px 12px;
            background: rgba(248, 249, 250, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .daily-stats-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .daily-stats-date-display {
            font-size: 14px;
            font-weight: 600;
            color: #2563eb;
            padding: 7px 14px;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 7px;
            border: 1px solid #cbd5e1;
            min-width: 160px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .daily-stats-nav-buttons {
            display: flex;
            gap: 5px;
        }

        .daily-stats-btn {
            border: none;
            border-radius: 7px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 8px 12px;
        }

        .daily-stats-btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
        }

        .daily-stats-btn-secondary {
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            color: #475569;
            border: 1px solid #cbd5e1;
        }

        .daily-stats-date-input {
            padding: 8px 11px;
            border: 1px solid #cbd5e1;
            border-radius: 7px;
            font-size: 13px;
            background: white;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .daily-stats-animation-controls {
            display: flex;
            gap: 5px;
            align-items: center;
            flex-wrap: wrap;
        }

        .animation-speed-control {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: 8px;
            padding: 6px 10px;
            background: rgba(255,255,255,0.9);
            border-radius: 6px;
            border: 1px solid #e5e7eb;
        }

        .animation-speed-label {
            font-size: 11px;
            color: #6b7280;
            font-weight: 600;
        }

        .animation-speed-slider {
            width: 60px;
            height: 4px;
            background: #e5e7eb;
            outline: none;
            border-radius: 2px;
            cursor: pointer;
        }

        .animation-speed-value {
            font-size: 10px;
            color: #9ca3af;
            font-weight: 600;
            min-width: 20px;
        }

        .daily-stats-content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .daily-stats-sub-card {
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            display: flex;
            flex-direction: column;
        }

        .daily-stats-sub-card-content {
            position: relative;
            flex: 1;
        }

        .daily-stats-sub-card-title {
            color: #333;
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e5e7eb;
            flex-shrink: 0;
        }

        .daily-stats-sub-card-medium {
            padding: 15px;
            margin-bottom: 20px;
            height: 520px;
            display: flex;
            flex-direction: column;
        }

        .daily-stats-sub-card-large {
            padding: 15px;
            margin-bottom: 20px;
            height: 535px;
            display: flex;
            flex-direction: column;
        }

        .daily-stats-chart-area {
            position: relative;
            flex: 1;
            min-width: 900px;
        }

        .daily-stats-game-gap-chart-area {
            position: relative;
            height: 300px;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .daily-stats-standings,
        .daily-stats-results {
            flex: 1;
            overflow: hidden;
        }

        .daily-stats-results {
            overflow-y: auto;
        }

        .daily-stats-game-gap-info {
            padding: 12px;
            background: white;
            border-radius: 6px;
            font-size: 13px;
            line-height: 1.6;
            border: 1px solid #e5e7eb;
            flex: 1;
            overflow-y: auto;
        }

        .daily-stats-game-gap-info-title {
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }

        .daily-stats-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 8px;
        }

        .daily-stats-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
            padding: 8px;
            margin-top: 10px;
        }

        .daily-stats-legend-inline {
            padding: 0;
            background: transparent;
            border: none;
            flex-shrink: 0;
            max-height: 60px;
            overflow-y: auto;
            margin-bottom: 0;
        }

        .info-panel {
            margin-top: 15px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .info-panel-spacious {
            margin-top: 20px;
        }

        .info-panel-title {
            font-size: var(--font-base);
            font-weight: var(--font-weight-medium);
            margin-bottom: 8px;
            color: #495057;
        }

        .info-panel-text,
        .info-panel ul,
        .info-panel li {
            font-size: var(--font-sm);
            color: #4b5563;
            line-height: 1.5;
        }

        .info-panel-subtitle {
            font-size: 11px;
            color: #666;
        }

        .info-item {
            margin-bottom: 6px;
        }

        .info-subtitle {
            margin-top: 8px;
            font-size: 11px;
            color: #666;
            line-height: 1.4;
        }

        .info-list {
            margin: 6px 0;
            padding-left: 16px;
            line-height: 1.5;
            font-size: var(--font-sm);
            color: var(--text-secondary);
        }

        .info-list li,
        .info-list-compact li {
            margin-bottom: 2px;
        }

        .info-list-compact {
            margin: 6px 0 0 0;
            padding-left: 16px;
            line-height: 1.4;
            font-size: 12px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 12px;
        }

        .info-subtitle-label {
            color: #2d3748;
            font-size: 13px;
        }

        .info-legend-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }

        .info-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .info-legend-chip {
            width: 16px;
            height: 12px;
            border-radius: 2px;
        }

        .info-legend-chip-positive {
            background: var(--positive-bg-medium);
        }

        .info-legend-chip-neutral {
            background: var(--neutral-bg-medium);
        }

        .info-legend-chip-negative {
            background: var(--negative-bg-medium);
        }

        .info-legend-chip-positive-strong {
            background: var(--positive-bg-strong);
        }

        .info-legend-chip-negative-strong {
            background: var(--negative-bg-strong);
        }

        .info-label-chip {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 3px;
            border: 1px solid transparent;
        }

        .info-label-chip-muted {
            background: #e9ecef;
            color: #495057;
            border-color: #dee2e6;
        }

        .info-label-chip-muted-alt {
            background: #e9ecef;
            color: #dc2626;
            border-color: #dee2e6;
        }

        .score-badge-strong-green {
            color: #15803d;
            font-weight: 600;
        }

        .score-badge-green {
            color: #059669;
            font-weight: 600;
        }

        .score-badge-orange {
            color: #d97706;
            font-weight: 600;
        }

        .score-badge-red {
            color: #dc2626;
            font-weight: 600;
        }

        .score-badge-dark-red {
            color: #991b1b;
            font-weight: 600;
        }

        .score-badge-seed-green {
            color: #16a34a;
            font-weight: 600;
        }

        .score-badge-yellow {
            color: #eab308;
            font-weight: 600;
        }

        .score-badge-green-soft {
            color: #22c55e;
            font-weight: 600;
        }

        .score-badge-orange-soft {
            color: #f97316;
            font-weight: 600;
        }

        .score-badge-gray {
            color: #9ca3af;
            font-weight: 600;
        }

        .score-emphasis {
            font-weight: 600;
        }

        .col-min-width-70 {
            min-width: 70px;
        }

        .col-min-width-140 {
            min-width: 140px;
        }

        .table-loading-cell {
            text-align: center;
            padding: 24px;
            color: #6b7280;
        }

        .sortable-th {
            cursor: pointer;
        }

        .table-fixed-layout {
            table-layout: fixed;
            width: 100%;
        }

        .responsive-table-scroll {
            overflow-x: auto;
        }

        .half-season-legend {
            margin-top: 20px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .half-season-tbody {
            border-top: 1px solid #ddd;
        }

        .chart-section {
            margin-bottom: 30px;
        }

        .chart-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding: 0 10px;
        }

        .chart-nav-spacer {
            min-width: 120px;
            display: flex;
        }

        .chart-nav-spacer.left {
            justify-content: flex-start;
        }

        .chart-nav-spacer.right {
            justify-content: flex-end;
        }

        .chart-nav-btn {
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            color: white;
            background: #4CAF50;
        }

        .chart-period-toggle {
            background: linear-gradient(135deg, #28a745, #34ce57);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
            min-width: 220px;
        }

        .chart-period-text {
            text-align: center;
            margin: 0;
            height: 18px;
            font-size: 13px;
            color: #666;
            font-weight: 500;
            line-height: 18px;
            visibility: hidden;
        }

        .chart-progress-indicator {
            display: flex;
            justify-content: center;
            margin-bottom: 8px;
            gap: 4px;
        }

        .chart-canvas-wrap {
            position: relative;
            flex: 1;
        }

        .chart-canvas-panel {
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
        }

        .chart-canvas-panel.large {
            padding: 15px;
            height: 535px;
        }


        /* Task 5 runtime inline-style migration (static style attributes only) */
        .inline-style-1 {
            width: 20px; height: 20px; margin-right: 5px; vertical-align: middle;
        }

        .inline-style-2 {
            text-align: center; padding: 40px; color: #e53e3e;
        }

        .inline-style-3 {
            min-width: 50px; font-size: var(--font-sm); cursor: pointer;
        }

        .inline-style-4 {
            min-width: 120px;
        }

        .inline-style-5 {
            cursor: pointer;
        }

        .inline-style-6 {
            max-width: 50px; width: 50px; padding: 6px 2px; text-align: center;
        }

        .inline-style-7 {
            max-width: 120px; width: 120px; font-size: var(--font-xs); padding: 6px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        .inline-style-8 {
            color: #999; font-size: var(--font-sm); padding: 8px; text-align: center;
        }

        .inline-style-9 {
            font-size: var(--font-sm); padding: 6px; line-height: 1.2; text-align: center;
        }

        .inline-style-10 {
            font-weight: var(--font-weight-semibold); margin-bottom: 1px;
        }

        .inline-style-11 {
            font-size: var(--font-xs); color: #666; margin-top: 1px;
        }

        .inline-style-12 {
            margin-top: 15px; padding: 12px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e9ecef;
        }

        .inline-style-13 {
            font-size: var(--font-base); font-weight: var(--font-weight-medium); margin-bottom: 8px; color: #495057;
        }

        .inline-style-14 {
            font-size: var(--font-sm); color: #4b5563; line-height: 1.5;
        }

        .inline-style-15 {
            margin-bottom: 6px;
        }

        .inline-style-16 {
            color: #ff9800; font-weight: var(--font-weight-semibold);
        }

        .inline-style-17 {
            background: rgba(34, 197, 94, 0.1); padding: 2px 6px; border-radius: 3px;
        }

        .inline-style-18 {
            background: rgba(234, 179, 8, 0.1); padding: 2px 6px; border-radius: 3px;
        }

        .inline-style-19 {
            background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 3px;
        }

        .inline-style-20 {
            text-align: center;
        }

        .inline-style-21 {
            background: #d4fdd4; color: #1e6f1e; padding: 2px 4px; border-radius: 3px; font-weight: var(--font-weight-semibold);
        }

        .inline-style-22 {
            background: #fdd4d4; color: #b91c1c; padding: 2px 4px; border-radius: 3px; font-weight: var(--font-weight-semibold);
        }

        .inline-style-23 {
            background: #fef3c7; color: #92400e; padding: 2px 4px; border-radius: 3px; font-weight: var(--font-weight-semibold);
        }

        .inline-style-24 {
            text-align: center; margin-bottom: 15px;
        }

        .inline-style-25 {
            margin-bottom: 10px; color: #2d3748; font-size: var(--font-xl); font-weight: var(--font-weight-semibold);
        }

        .inline-style-26 {
            display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; padding: 5px; background: #f8f9fa; border-radius: 8px; max-width: 100%; margin: 0 auto; border: 1px solid #e9ecef; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
        }

        .inline-style-27 {
            text-align: center; margin-bottom: 12px; color: #2d3748; font-size: var(--font-xl); font-weight: var(--font-weight-semibold);
        }

        .inline-style-28 {
            margin-bottom: 12px; background: #f8f9fa; padding: 8px 12px; border-radius: 8px; border: 1px solid #e9ecef;
        }

        .inline-style-29 {
            display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 15px; max-width: 85%; margin: 0 auto;
        }

        .inline-style-30 {
            display: flex; flex-direction: column; align-items: center; gap: 4px;
        }

        .inline-style-31 {
            font-size: var(--font-sm); color: #718096; font-weight: var(--font-weight-medium);
        }

        .inline-style-32 {
            font-size: var(--font-lg); font-weight: var(--font-weight-bold); color: #2d3748;
        }

        .inline-style-33 {
            font-size: var(--font-lg); font-weight: var(--font-weight-bold); color: #3182ce;
        }

        .inline-style-34 {
            font-size: var(--font-lg); font-weight: var(--font-weight-bold);
        }

        .inline-style-35 {
            margin-top: 5px;
        }

        .inline-style-36 {
            text-align: center; margin: 5px 0 5px 0; color: #2d3748; font-size: var(--font-xl); font-weight: var(--font-weight-semibold);
        }

        .inline-style-37 {
            display: flex; justify-content: center; gap: 15px; margin-bottom: 10px; flex-wrap: wrap;
        }

        .inline-style-38 {
            font-size: var(--font-sm); color: #495057; font-weight: var(--font-weight-medium);
        }

        .inline-style-39 {
            margin-left: 5px; padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: var(--font-sm);
        }

        .inline-style-40 {
            margin-left: 5px; display: inline-flex; background: #f8f9fa; border-radius: 5px; border: 1px solid #ddd; overflow: hidden;
        }

        .inline-style-41 {
            padding: 4px 10px; border: none; background: #495057; color: white; font-size: var(--font-sm); cursor: pointer;
        }

        .inline-style-42 {
            padding: 4px 10px; border: none; background: transparent; color: #666; font-size: var(--font-sm); cursor: pointer;
        }

        .inline-style-43 {
            text-align: center; margin-bottom: 8px; display: none;
        }

        .inline-style-44 {
            background: #e9ecef; border-top: 2px solid #6c757d;
        }

        .inline-style-45 {
            text-align: center; padding: 10px 8px; font-weight: 600; color: #495057;
        }

        .inline-style-46 {
            background: #f8f9fa; opacity: 0.8;
        }

        .inline-style-47 {
            color: #4b5563; text-align: center;
        }

        .inline-style-48 {
            color: #4b5563;
        }

        .inline-style-49 {
            background: #6c757d; color: white;
        }

        .inline-style-50 {
            color: #2563eb; font-weight: var(--font-weight-semibold);
        }

        .inline-style-51 {
            color: #dc2626; font-weight: var(--font-weight-semibold);
        }

        .inline-style-52 {
            color: #1f2937;
        }

        .inline-style-53 {
            padding: 6px 10px; font-size: var(--font-sm); font-weight: var(--font-weight-medium); border: 1px solid #495057; border-radius: 6px; background: #495057; color: white; cursor: pointer; transition: all 0.2s ease; min-width: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0;
        }

        .inline-style-54 {
            padding: 6px 10px; font-size: var(--font-sm); font-weight: var(--font-weight-medium); border: 1px solid #dee2e6; border-radius: 6px; background: white; color: #666; cursor: pointer; transition: all 0.2s ease; min-width: 55px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0;
        }

        .inline-style-55 {
            text-align: center; margin: 10px 0 8px 0; color: #2d3748; font-size: var(--font-xl); font-weight: var(--font-weight-semibold);
        }

        .inline-style-56 {
            text-align: center; margin-bottom: 8px;
        }

        .inline-style-57 {
            max-height: 800px; overflow-y: auto;
        }

        .inline-style-58 {
            background: #34495e; color: white; position: sticky; top: 0; z-index: 10;
        }

        .inline-style-59 {
            padding: 1px 3px; border: 1px solid #495057; text-align: center; min-width: 140px;
        }

        .inline-style-60 {
            padding: 1px 3px; border: 1px solid #495057; text-align: center; min-width: 80px; font-size: var(--font-xs);
        }

        .inline-style-61 {
            border-bottom: 1px solid #e2e8f0;
        }

        .inline-style-62 {
            padding: 1px 3px; border: 1px solid #e2e8f0; text-align: center; background: #f8f9fa; white-space: nowrap;
        }

        .inline-style-63 {
            padding: 1px 3px; border: 1px solid #e2e8f0; text-align: center; background: #f9f9f9; color: #999;
        }

        .inline-style-64 {
            margin: 1px 0; padding: 4px 5px; border-radius: 3px; font-weight: var(--font-weight-semibold); font-size: var(--font-sm); line-height: 1.6;
        }

        .inline-style-65 {
            padding: 1px; border: 1px solid #e2e8f0; text-align: center;
        }

        .inline-style-66 {
            text-align: center; padding: 15px 8px; font-weight: 600; color: #495057;
        }

        .inline-style-67 {
            background: #f8f9fa; opacity: 0.8; border-bottom: 1px solid #e2e8f0;
        }

        .inline-style-68 {
            padding: 1px 3px; border: 1px solid #e2e8f0; text-align: center; background: #f1f3f4; white-space: nowrap;
        }

        .inline-style-69 {
            margin: 1px 0; padding: 4px 5px; border-radius: 3px; background: #e9ecef; font-weight: var(--font-weight-semibold); font-size: var(--font-sm); line-height: 1.6; color: #4b5563;
        }

        .inline-style-70 {
            background: #6c757d; color: white; padding: 1px 4px; border-radius: 3px; font-size: var(--font-xs);
        }

        .inline-style-71 {
            font-weight: 600;
        }

        .inline-style-72 {
            font-weight: var(--font-weight-bold); text-align: center;
        }

        .inline-style-73 {
            color: #007bff;
        }

        .inline-style-74 {
            white-space: nowrap;
        }

        .inline-style-75 {
            text-align: center; padding: 20px;
        }

        .inline-style-76 {
            text-align: center; padding: 20px; color: #e74c3c;
        }

        .inline-style-77 {
            font-size: var(--font-sm);
        }

        .inline-style-78 {
            background: #ecf0f1; color: #999; font-weight: var(--font-weight-semibold); font-size: var(--font-xl);
        }

        .inline-style-79 {
            font-size: var(--font-base); line-height: 1.3; text-align: center;
        }

        .inline-style-80 {
            color: #999; font-weight: var(--font-weight-medium);
        }

        .inline-style-81 {
            font-size: var(--font-2xs);
        }

        .inline-style-82 {
            background: #f8f9fa; color: #999; text-align: center;
        }

        .inline-style-83 {
            min-width: 70px; vertical-align: middle; font-size: var(--font-base); white-space: nowrap; cursor: pointer;
        }

        .inline-style-84 {
            min-width: 100px; font-size: var(--font-sm); white-space: nowrap; padding: 6px 2px; cursor: pointer;
        }

        .inline-style-85 {
            font-size: var(--font-xs); margin-top: 2px;
        }

        .inline-style-86 {
            background: #f8f9fa; color: #999; padding: 6px 2px; white-space: nowrap; font-size: var(--font-xs); text-align: center;
        }

        .inline-style-87 {
            background: #6b7280; color: white; border: 1px solid #4b5563; white-space: nowrap; font-size: var(--font-sm); padding: 6px 4px;
        }

        .inline-style-88 {
            background: rgba(107, 114, 128, 0.1); text-align: center; border: 1px solid #d1d5db; white-space: nowrap; font-size: var(--font-sm); padding: 6px 2px;
        }

        .inline-style-89 {
            background: rgba(107, 114, 128, 0.1); color: #999; text-align: center; border: 1px solid #d1d5db; white-space: nowrap; font-size: var(--font-sm); padding: 6px 2px;
        }

        .inline-style-90 {
            font-weight: var(--font-weight-semibold); margin-bottom: 1px; font-size: var(--font-sm);
        }

        .inline-style-91 {
            font-size: var(--font-xs); margin-top: 1px;
        }

        .inline-style-92 {
            border-top: 2px solid #34495e;
        }

        .inline-style-93 {
            min-width: 135px; padding: 6px 2px; white-space: nowrap;
        }

        .inline-style-94 {
            min-width: 85px; padding: 6px 2px; font-size: var(--font-sm); white-space: nowrap;
        }

        .inline-style-95 {
            padding: 6px 2px; min-width: 135px; max-width: 135px; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
        }

        .inline-style-96 {
            font-weight: var(--font-weight-semibold); font-size: var(--font-xs); margin: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        .inline-style-97 {
            font-size: var(--font-2xs); color: #666; margin: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        .inline-style-98 {
            font-size: var(--font-sm); line-height: 1.2; text-align: center;
        }

        .inline-style-99 {
            background: #f8f9fa; color: #999; padding: 1px; white-space: nowrap; min-width: 85px;
        }

        .inline-style-100 {
            font-weight: var(--font-weight-semibold); white-space: nowrap;
        }

        .inline-style-101 {
            font-size: var(--font-xs); white-space: nowrap;
        }

        .inline-style-102 {
            text-align: center; padding: 40px; color: #e74c3c;
        }

        .inline-style-103 {
            width: 30px !important; min-width: 30px !important; max-width: 30px !important;
        }

        .inline-style-104 {
            width: 70px !important; min-width: 70px !important; max-width: 70px !important;
        }

        .inline-style-105 {
            width: 50px !important; min-width: 50px !important; max-width: 50px !important;
        }

        .inline-style-106 {
            width: 20px !important; min-width: 20px !important; max-width: 20px !important;
        }

        .inline-style-107 {
            width: 75px !important; min-width: 75px !important; max-width: 75px !important;
        }

        .inline-style-108 {
            color: #4CAF50; font-weight: var(--font-weight-bold); text-align: center;
        }

        .inline-style-109 {
            color: #F44336; font-weight: var(--font-weight-bold); text-align: center;
        }

        .inline-style-110 {
            text-align: center; color: #6b7280; padding: 20px;
        }

        .inline-style-111 {
            background: #f3f4f6;
        }

        .inline-style-112 {
            padding: 6px 4px; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 11px;
        }

        .inline-style-113 {
            padding: 6px 4px; border-bottom: 1px solid #e5e7eb; font-size: 14px;
        }

        .inline-style-114 {
            display: flex; align-items: center; gap: 6px;
        }

        .inline-style-115 {
            width: 20px; height: 20px; object-fit: contain;
        }

        .inline-style-116 {
            padding: 6px 4px; border-bottom: 1px solid #e5e7eb; font-size: 14px; font-weight: 600;
        }

        .inline-style-117 {
            font-size: 16px; margin-bottom: 8px;
        }

        .inline-style-118 {
            display: flex; flex-direction: column; align-items: center; flex: 1;
        }

        .inline-style-119 {
            width: 18px; height: 18px; object-fit: contain;
        }

        .inline-style-120 {
            color: #6b7280; font-weight: 600;
        }

        .inline-style-121 {
            font-size: 10px; color: #9ca3af; margin-top: 2px;
        }

        .inline-style-122 {
            font-size: 14px; font-weight: bold; text-align: center; min-width: 100px; color: #dc2626;
        }

        .inline-style-123 {
            font-size: 12px; color: #666; margin-left: 4px;
        }

        .inline-style-124 {
            font-size: 16px; font-weight: bold; text-align: center; min-width: 70px;
        }

        .inline-style-125 {
            color: #6b7280;
        }

        .inline-style-126 {
            font-size: 11px; color: #6b7280; margin-top: 4px; text-align: center; line-height: 1.2;
        }

        .inline-style-127 {
            font-size: 14px; font-weight: bold; color: #333; display: flex; align-items: center; line-height: 1.3;
        }

        .inline-style-128 {
            display: flex; align-items: center; gap: 4px;
        }

        .inline-style-129 {
            width: 16px; height: 16px; object-fit: contain;
        }

        .inline-style-130 {
            color: #6b7280; font-size: 12px;
        }

        .inline-style-131 {
            font-size: 12px; font-weight: 500; color: #374151;
        }

        .inline-style-132 {
            display: flex; flex-wrap: wrap; gap: 6px;
        }

        .inline-style-133 {
            text-align: center; color: #ef4444; padding: 20px;
        }

        .inline-style-134 {
            width: 20px; height: 20px; vertical-align: middle; margin-right: 6px;
        }

        .inline-style-135 {
            display: inline-block; line-height: 1;
        }

        .inline-style-136 {
            display: inline-block; margin: 0 1px; line-height: 1;
        }

        .inline-style-137 {
            display: inline-block; font-size: 0.8rem; line-height: 1;
        }

        .inline-style-138 {
            text-align: center; padding: 40px; color: #dc2626;
        }

        .inline-style-139 {
            margin-bottom: 20px;
        }

        .inline-style-140 {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px;
        }

        .inline-style-141 {
            text-align: center; padding: 15px; background: var(--positive-bg-light); border-radius: 8px; border: 1px solid #d4edda;
        }

        .inline-style-142 {
            font-size: var(--text-lg); font-weight: var(--font-weight-bold); color: var(--positive-color);
        }

        .inline-style-143 {
            font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--positive-color);
        }

        .inline-style-144 {
            text-align: center; padding: 15px; background: var(--negative-bg-light); border-radius: 8px; border: 1px solid #f8d7da;
        }

        .inline-style-145 {
            font-size: var(--text-lg); font-weight: var(--font-weight-bold); color: var(--negative-color);
        }

        .inline-style-146 {
            font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--negative-color);
        }

        .inline-style-147 {
            text-align: center; padding: 15px; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef;
        }

        .inline-style-148 {
            font-size: var(--text-lg); font-weight: var(--font-weight-bold); color: #495057;
        }

        .inline-style-149 {
            font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: #495057;
        }

        .inline-style-150 {
            overflow-x: auto;
        }

        .inline-style-151 {
            background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%); color: white;
        }

        .inline-style-152 {
            padding: 12px; text-align: center; border-right: 2px solid white; font-size: var(--text-lg);
        }

        .inline-style-153 {
            padding: 12px; text-align: center; font-size: var(--text-lg);
        }

        .inline-style-154 {
            background: #f8f9fa;
        }

        .inline-style-155 {
            padding: 10px; text-align: center; border: 1px solid #dee2e6; width: 25%;
        }

        .inline-style-156 {
            width: 10%; cursor: pointer; user-select: none;
        }

        .inline-style-157 {
            width: 9%; cursor: pointer; user-select: none;
        }

        .inline-style-158 {
            width: 20px; height: 20px; vertical-align: middle; margin-right: 4px;
        }

        .inline-style-159 {
            color: #666; font-size: 11px;
        }

        .inline-style-160 {
            border-top: 2px solid #666; font-weight: bold; background: #f8f9fa;
        }

        .inline-style-161 {
            font-weight: bold;
        }

        .inline-style-162 {
            text-align: center; padding: 4px 2px; font-size: var(--font-xs); font-weight: bold; line-height: 1.3;
        }

        /* Task 7: Accessibility baseline */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        :focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 3px;
        }

        a:focus-visible,
        button:focus-visible,
        [role="button"]:focus-visible,
        select:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }

        .tab-hover-surface:focus-visible {
            transform: translateY(-1px);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
        }
