:root {
        --primary-color: #2E533E;
        --bg-gray: #f4f4f4;
        --border-color: #e0e0e0;
        --text-dark: #333;
        --text-light: #666;
    }

    *:focus { outline: none; }
    main:focus { outline: 0; }

    /* [PC/공통] 경기 결과 리스트 레이아웃 */
       main.container { padding: 0 ;width: 100%;
        margin: auto; }
        .fixtures-sec .fx-inner{padding-top:0;}
    .fx-item {
        border-bottom: 1px solid var(--border-color);
        background: #fff;
        transition: background 0.2s;
    }
    .fx-item:hover { background-color: #fcfcfc; }

    .fx-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25px 10px;
        text-decoration: none;
        color: var(--text-dark);
        width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }

    /* 1. 좌측: 날짜/장소 */
    .fx-col.left {
        flex: 0 0 24%; /* 고정 너비 (줄어들지 않음) */
        text-align: left;
    }
    .fx-col.left .round {
        display: block;
        font-size: 1.4rem;
        color: var(--primary-color);
        margin-bottom: 5px;
        font-weight: 600;
        white-space: nowrap; /* 줄바꿈 방지 */
    }
    .fx-col.left .dt time {
        font-size: 1.6rem;
        font-weight: 700;
        display: block;
        margin-bottom: 5px;
        white-space: nowrap; 
    }
    .fx-col.left .m-loca {
        display: flex; align-items: center;
        font-size: 1.4rem; color: var(--text-light);
        white-space: nowrap;
    }
    .fx-col.left .a-mark {
        display: inline-block;
        background: #225555; 
        color: #fff;
        font-size: 1.1rem; 
        padding: 4px 6px 2px 6px;
        border-radius: 4px; 
        margin-right: 6px;
        flex-shrink: 0;
    }
    .fx-col.left .h-mark {
        display: inline-block;
        background: #47F5B6; 
        color: #fff;
        font-size: 1.1rem; 
        padding: 4px 6px 2px 6px;
        border-radius: 4px; 
        margin-right: 6px;
        flex-shrink: 0;
    }

    /* 2. 중앙: 팀 vs 팀 */
    .fx-col.mid {
        flex: 1; /* 남은 공간 차지 */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 0; /* 자식 요소 넘침 방지 */
    }
    
    .team {
        display: flex;
        align-items: center;
        gap: 4rem;
        width: 40%; 
        min-width: 0; /* 말줄임표 처리를 위해 필수 */
    }
    .team:first-child { justify-content: flex-end; text-align: right; }
    .team:last-child { justify-content: flex-start; text-align: left; }
    
    .team .name {
        font-size: 1.8rem;
        font-weight: 600;
        white-space: nowrap; /* ★ 팀 이름 줄바꿈 절대 금지 */
        overflow: hidden;    /* 넘치면 숨김 */
        text-overflow: ellipsis; /* ... 처리 */
    }
    .team img {
        width: 55px; height: 55px;
        object-fit: contain;
        flex-shrink: 0; /* ★ 로고 찌그러짐 방지 */
    }

    /* 스코어 */
    .score {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 100px; /* ★ 최소 너비 확보 (찌그러짐 방지 핵심) */
        flex-shrink: 0;   /* ★ 공간 부족해도 줄어들지 않음 */
        white-space: nowrap;
    }
    .score span {
        font-family: 'KoreaInstituteOfMachineryAndMaterials', sans-serif;
        font-size: 4.5rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1;
    }
    .score span.h, .score span.a { color: #aaa; }

    /* 3. 우측: 버튼 */
    .fx-col.right {
        flex: 0 0 auto;
        text-align: right;
    }
    .btn-outline {
        padding: 8px 18px;
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 20px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: all 0.2s;
        font-size: 1.4rem;
        white-space: nowrap; /* 버튼 텍스트 줄바꿈 방지 */
    }
    .btn-outline:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    .btn-outline span { display: inline-block; font-weight: 600; }

    /* 월 선택 네비게이션 (기존 유지) */
    .fx-month {
        display: flex; align-items: center; justify-content: center;
        margin: 40px 0 20px; gap: 15px; position: relative;
    }
    .month-nav {
        width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%;
        background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
        font-size: 1.6rem; color: #555;
    }
    .month-nav:hover { background: #f9f9f9; }
    .month-btn {
        background: none; border: none; font-size: 2rem; font-weight: bold;
        cursor: pointer; display: flex; align-items: center; gap: 8px;
    }
    .year-dropdown, .month-dropdown {
        position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
        background: #fff; border: 1px solid #ddd; border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none; z-index: 100; max-height: 200px; overflow-y: auto;
        width: 100px; padding: 5px 0;
    }
    .year-dropdown.show, .month-dropdown.show { display: block; }
    .year-dropdown li, .month-dropdown li {
        padding: 10px; text-align: center; cursor: pointer; font-size: 1.4rem;
    }
    .year-dropdown li:hover, .month-dropdown li:hover { background: #f5f5f5; }

	.year-dropdown.show{margin-left:-64px;}
	.badge.draw {
		color: var(--color999);
	    font-size: clamp(1.6rem, 2.50vw, 2.4rem);
	    font-weight: 600;
	    line-height: 150%;
	    letter-spacing: -0.096rem;
	}
	.badge.lose {
		color: var(--color999);
	    font-size: clamp(1.6rem, 2.50vw, 2.4rem);
	    font-weight: 600;
	    line-height: 150%;
	    letter-spacing: -0.096rem;
	}
	.badge.win {
		color: var(--color47F5B6);
	    text-align: center;
	    font-size: clamp(1.6rem, 2.50vw, 2.4rem);
	    font-weight: 600;
	    line-height: 150%;
	    letter-spacing: -0.096rem;
	}
	.score span {
		font-family: 'KoreaInstituteOfMachineryAndMaterials';
	    font-weight: 700;
	    font-size: clamp(3rem, 3.2vw, 4.4rem);
	    color: var(--colorfff);
	}
	.core_box_result {
	    width: 80%;
	    border-top: 1px solid #818181;
	    padding-top: 2rem;
	}
	.core_box_result_ul {
	    display: flex;
	    gap: 10px;
	    align-items: center;
	    justify-content: center;
	}
	.core_box_result_ul li, .core_box_result_ul li i {
	    color: #fff;
	    font-size: 18px;
	    font-style: normal;
	}
	.core_box_result_ul li:nth-child(2) {
	    width: 50px;
	    border-bottom: 1px solid #fff;
	}

	@media (max-width: 1600px) {
		#main {
			padding: 0 4rem;
			width: unset;
		}
	}

    /* [반응형 1단계] 1280px ~ 769px (노트북/태블릿 가로)*/
    @media (max-width: 1280px) {
        /* 전체 패딩 축소하여 공간 확보 */
        .fx-link { padding: 20px 5px; gap: 2px; }

        /* 좌측 날짜 영역 너비 줄임 */
        .fx-col.left { flex: 0 0 30%; } 
        .fx-col.left .dt time { font-size: 1.4rem; }
        .fx-col.left .m-loca { font-size: 1.2rem; }

        /* 중앙 팀 영역 다이어트 */
        .team .name { font-size: 1.4rem; }
        .team img { width: 40px; height: 40px; }
        
        /* 스코어 크기 조정 (깨지지 않는 선에서) */
        .score { min-width: 80px; gap: 2px; }
        .score span { font-size: 3rem; }
        
        /* 우측 버튼 최적화 */
        .btn-outline { 
            padding: 6px 10px; 
            font-size: 1.3rem; 
        }
        .btn-outline svg { width: 18px; height: 18px; }
    }

    /* [반응형 2단계] 768px 이하 (모바일/태블릿 세로) 카드형 디자인 시점 */
    @media (max-width: 980px) {
	    .year-dropdown.show, .month-dropdown.show {
	    display: block;
	    margin-top: -2rem;    
	}
	.month-dropdown.show{margin-left: 7rem;}
	.month-btn strong {
	 	font-size: clamp(2.8rem, 2.50vw, 4rem);
	}
	.fx-month{
	   padding-bottom:2rem;
	}	 
	.fx-item {
	    display: block; margin-bottom: 15px;
	    border: 1px solid #eee; border-radius: 12px;
	    box-shadow: 0 3px 8px rgba(0,0,0,0.04); overflow: hidden;
	 }
	.fx-link { flex-direction: column; padding: 0; gap: 0; }
	
	   /* 카드 헤더 */
	.fx-col.left {
	    flex: auto; width: 100%; background-color: #f8f9fa;
	    padding: 12px 15px; border-bottom: 1px solid #eee;
	    display: flex; align-items: center; justify-content: space-between;
	}
	.fx-col.left .round { display: none; }
	.fx-col.left .dt { display: flex; align-items: center; width: 100%; justify-content: space-between; margin: 0; }
	.fx-col.left .dt time { font-size: 1.3rem; margin: 0; color: #555; }
	.fx-col.left .m-loca { font-size: 1.2rem; }
	
	/* 카드 바디 */
	.fx-col.mid {
	    width: 100%; padding: 25px 10px 15px; gap: 10px;
	}
	.team {
	    flex-direction: column; justify-content: flex-start !important;
	    text-align: center !important; width: 33%; gap: 8px;
	}
	.team img { width: 50px; height: 50px; margin: 0 auto; }
	.team .name {
	    font-size: 1.3rem; white-space: normal; height: auto;
	    text-align: center; width: 100%;
	}
	.score { min-width: auto; }
	.score span { font-size: 2.8rem; }
	
	/* 카드 푸터 */
	.fx-col.right { width: 100%; padding: 0 15px 15px; text-align: center; }
	.btn-outline { width: 100%; display: flex; justify-content: center; padding: 12px 0; font-size: 1.4rem; background-color: #fff; border: 1px solid #ddd; }
	
	.sub_tabs { gap: 5px; }
	.sub_tab { flex: 1; padding: 10px 0; font-size: 1.8rem; }
}

@media (max-width: 768px) {
	.match-card {
		gap: 0;
	}
	.team {
		flex-direction: column-reverse;
        gap: .8rem;
    }
    .team.away {
        flex-direction: column;
    }
    .next-team {
    	flex-direction: column;
    }
}

@media (max-width: 640px) {
	.match-card {
        background-size: cover;
        background-position: center;
        padding: 1rem 0 4rem 0;
        height: 40rem;
	}
	.team.away, .team.home {
        flex-direction: row;
        gap: 0;
        width: auto;
    }
    .team.home .next-team {
		flex-direction: row-reverse;
    }
    .team.away .next-team {
		flex-direction: row;
    }
    .badge {
    	margin: 0 1rem;
    }
}

@media (max-width: 500px) {
	#main {
		padding: 0 2rem;
	}
}


/*일정결과 match 모바일 추가*/
/* NEXT MATCH 카드 반응형 스타일 (640px 이하) - 높이 대폭 축소 */
@media (max-width: 640px) {
    #nextGame {
        padding: 1.5rem 1rem !important;
        gap:0;
        
    }
    
    #nextGame .next-kicker {
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    #nextGame .next-meta {
        margin-bottom: 0.8rem !important;
    }
    
    #nextGame .next-meta .badge {
        padding: 0.3rem 0.6rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
    }
    
    #nextGame .next-meta .badge img {
        max-width: 1.2rem !important;
        height: auto !important;
    }
    
    #nextGame .next-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.8rem !important;
        padding: 0.8rem 0 !important;
        margin-bottom: 1rem !important;
    }
    
    #nextGame .next-team {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }
    
    #nextGame .next-team img {
        max-width: 2.8rem !important;
        max-height: 2.8rem !important;
    }
    
    #nextGame .next-team .fc-name {
        font-size: 1.7rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }
    
    #nextGame .next-vs {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.3rem !important;
        padding: 0 0.5rem !important;
    }
    
    #nextGame .next-vs .badge {
        font-size: 0.9rem !important;
        padding: 0.2rem 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    #nextGame .next-vs time {
        font-size: 1.1rem !important;
        display: block !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    #nextGame .next-vs em {
        font-size: 1rem !important;
        margin-top: 0 !important;
        display: block !important;
        white-space: nowrap !important;
    }
    
    #nextGame .primary_btn {
        max-width: 90% !important;
        padding: 0.9rem 1.2rem !important;
        font-size: 1.2rem !important;
        margin-top: 0 !important;
    }
    
    #nextGame .primary_btn .mr10 {
        margin-right: 0.4rem !important;
    }
    
    #nextGame .primary_btn .arr_icon {
        transform: scale(0.75) !important;
    }
   #nextGame .next-team:last-child{    flex-direction: column-reverse !important;}
   .next-card{padding:2rem 0;}
}

/* 480px 이하 추가 최적화 */
@media (max-width: 480px) {
    #nextGame {
        padding: 1.2rem 0.8rem !important;
    }
    
    #nextGame .next-kicker {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    #nextGame .next-meta .badge {
        font-size: 0.9rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    #nextGame .next-row {
        gap: 0.5rem !important;
        padding: 0.6rem 0 !important;
        margin-bottom: 0.8rem !important;
    }
    
    #nextGame .next-team img {
        max-width: 2.4rem !important;
        max-height: 2.4rem !important;
    }
    
   
    
    #nextGame .next-vs time {
        font-size: 1rem !important;
    }
    
    #nextGame .next-vs em {
        font-size: 0.9rem !important;
    }
    
    #nextGame .primary_btn {
        padding: 0.8rem 1rem !important;
        font-size: 1.1rem !important;
    }
    .fx-month{margin-top:0;}
}