/* 국내대회 일정·결과 페이지 */
#contents {
    overflow-x: hidden;
    padding-bottom: 0 !important;
}

/* 모바일 전용 컨테이너 (PC에서는 숨김) */
.national_mobile_container {
    display: none;
}

.national_mobile_wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* PC 전용 컨테이너 */
.national_container {
    background: transparent;
    overflow-x: hidden;
    width: 100%;
}

.national_wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 6rem 2rem;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 탭 영역 */
.national_tabs_wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.national_tabs {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.national_tabs::-webkit-scrollbar {
    display: none;
}

.national_tab {
    padding: 1rem 2rem;
    border: none;
    background: #A7C8FF;
    border-radius: 9rem;
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: var(--white);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.national_tab:hover {
    background: #A7C8FF;
}

.national_tab.active {
    background: #0601FF;
    color: var(--white);
    border: none;
    font-weight: 600;
}

/* 날짜 네비게이션 영역 */
.date_navigation {
    margin-top: 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
}

.date_controls {
    background: #f3f6fb;
    border-radius: 10rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.8rem 1.6rem;
}

.date_nav_btn {
    width: 3.6rem;
    height: 3.6rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.date_nav_btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.date_nav_btn svg {
    width: 2rem;
    height: 2rem;
    color: var(--font-black);
}

.date_display {
    font-size: 1.8rem;
    line-height: 2.6rem;
    font-weight: 600;
    color: var(--font-black);
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0;
}

.date_text {
    display: inline-block;
}

.date_dropdown_icon {
    flex-shrink: 0;
    display: block;
    margin-left: 0;
}

.date_display:hover {
    opacity: 0.8;
}

.view_toggle_btn {
    border: none;
    border-radius: 50%;
    background: #f3f6fb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    padding: 0;
    transition: all 0.3s;
    color: var(--font-black);
}

.view_toggle_btn:hover {
    background: #EBF0F8;
}

.view_toggle_btn.active {
    background: #f3f6fb;
    color: var(--font-black);
}

/* 월 모드일 때 pill 형태로 변경 */
.view_toggle_btn.monthly_mode {
    border-radius: 50%;
    width: 4.6rem;
    height: 4.6rem;
    padding: 0;
    gap: 0;
    color: var(--font-black);
}

.view_toggle_btn.monthly_mode:hover {
    background: #EBF0F8;
}

.view_toggle_btn svg {
    width: 4.6rem;
    height: 4.6rem;
}

.view_toggle_btn .daily_icon {
    display: block;
}

.view_toggle_btn .monthly_icon {
    display: none;
}

/* 월 모드일 때 아이콘 전환 */
.view_toggle_btn.monthly_mode .daily_icon {
    display: none !important;
}

.view_toggle_btn.monthly_mode .monthly_icon {
    display: block !important;
}

.view_toggle_btn .view_toggle_text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2.2rem;
    color: #0601FF;
}

/* 검색 및 카운트 영역 */
.search_count_area {
    text-align: left;
    margin-bottom: 1.6rem;
}

.match_count {
    font-size: 15px;
    line-height: 20px;
    color: var(--font-black);
    text-align: left;
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 400;
    letter-spacing: -0.75px;
}

.match_count strong {
    font-weight: 700;
    color: #F8AD40;
}

/* 리스트 헤더 */
.list_header {
    background: var(--white);
    padding: 1.2rem 2rem;
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 3fr 1.5fr 1fr 1fr;
    gap: 1.5rem;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 600;
    color: var(--font-black);
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-bottom: 0;
}

.list_header > div {
    text-align: center;
}

/* 경기 리스트 */
.match_list {
    display: flex;
    flex-direction: column;
    background: var(--white);
    min-height: 40rem;
}

.match_item {
    background: var(--white);
    border-bottom: 1px solid var(--linegrey);
    padding: 1.5rem 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.match_item:has(.live_badge_top) {
    z-index: 2;
}

.match_item:hover {
    background: #f9fafb;
}

.match_item:last-child {
    border-bottom: none;
}

.live_badge_top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 16px;
    background: #FF002D;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 16px;
    border-radius: 0 0 4px 4px;
    z-index: 1;
    margin-left: 0;
    margin-right: 0;
}

/* 점수가 없을 때 Live 버튼 위치 조정 */
.score_section.no_score .live_badge_top {
    top: 0;
    position: relative;
    margin-bottom: 0.4rem;
}

.match_item_content {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 3fr 1.5fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.match_time {
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #444;
    font-weight: 400;
    text-align: center;
}

.match_tournament {
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #444;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.match_type {
    font-size: 1.4rem;
    line-height: 2rem;
    color: #444;
    text-align: center;
}

.match_schedule_result {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    position: relative;
    width: 100%;
}

.team_info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
    flex-shrink: 1;
}

.team_logo {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team_name {
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
    position: relative;
    flex-shrink: 0;
}

.score_section .live_badge_top {
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 16px;
    background: #FF002D;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 16px;
    border-radius: 0 0 4px 4px;
    z-index: 10;
}

.match_score {
    font-size: 1.8rem;
    line-height: 2.6rem;
    font-weight: 600;
    color: #444;
    width: 100%;
    text-align: center;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match_venue {
    font-size: 1.5rem;
    line-height: 2.2rem;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.match_status {
    font-size: 1.4rem;
    line-height: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status_badge {
    display: inline-block;
    font-weight: 400;
    color: #797979;
}

.status_badge.live {
    color: #2364CF;
}

.status_badge.scheduled {
    color: #797979;
}

.status_badge.finished {
    color: #797979;
}

.status_badge.canceled {
    color: #FF002D;
}

.boxscore_btn {
    padding: 0.6rem 1.2rem;
    background: var(--btncolor-2);
    color: var(--white);
    border: none;
    border-radius: 0.4rem;
    font-size: 1.3rem;
    line-height: 1.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.boxscore_btn:hover {
    background: var(--btncolor-1);
}

/* Monthly View - 캘린더 */
.calendar_wrapper {
    background: var(--white);
    border-radius: 0;
    padding: 0;
}

.calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0.4rem;
    overflow: hidden;
    width: 100%;
}

.calendar_day_header {
    text-align: center;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 500;
    color: #797979;
    padding: 1.2rem 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.calendar_day {
    aspect-ratio: 1;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 0;
}

.calendar_day:nth-child(7n) {
    border-right: none;
}

.calendar_day:hover {
    background: #f9fafb;
}

.calendar_day.other_month {
    opacity: 1;
    background: #F3F6F8;
}

.calendar_day.other_month:hover {
    background: #F3F6F8;
}

.calendar_day_header_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.calendar_date_num {
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 400;
    color: #000;
}

.calendar_matches {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.calendar_match_item {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: #000;
    padding: 0.4rem 0.6rem;
    background: #F3F6FB;
    border-radius: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.4rem;
}

.calendar_match_item:last-child {
    margin-bottom: 0;
}

.calendar_match_item .winner {
    font-weight: 700;
}

.calendar_match_item .score.bold {
    font-weight: 700;
}

.calendar_more_btn {
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* 모달 팝업 */
.modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal_overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal_content {
    background: var(--white);
    border-radius: 1.6rem;
    max-width: 90rem;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-2rem);
    transition: all 0.3s;
}

.modal_overlay.active .modal_content {
    transform: translateY(0);
}

.modal_header {
    padding: 2rem;
    border-bottom: 1px solid var(--linegrey);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal_title {
    text-align: center;
    color: #000;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.75px;
}

.modal_close_btn {
    width: 3.6rem;
    height: 3.6rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal_close_btn svg {
    width: 2.4rem;
    height: 2.4rem;
}

.modal_body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* 데이트피커 */
/* 날짜 선택 모달 */
.datepicker_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.datepicker_modal_overlay[style*="display: flex"] {
    display: flex !important;
}

.datepicker_modal_content {
    background: #fff;
    border-radius: 0.8rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 40rem;
    width: auto;
}

#datepicker_container {
    width: 100%;
}

/* jQuery UI Datepicker 커스텀 스타일 */
.ui-datepicker {
    background: #fff !important;
    border: none !important;
    border-radius: 0.8rem !important;
    padding: 2rem !important;
    font-family: "Noto Sans KR", sans-serif !important;
    box-shadow: none !important;
}

.ui-datepicker-header {
    background: #fff !important;
    border: none !important;
    padding: 0 0 1.6rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    min-height: 4rem !important;
    width: 100% !important;
}

.ui-datepicker-title {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    line-height: 2.4rem !important;
    margin: 0 !important;
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    font-size: 1.6rem !important;
    padding: 0.4rem 0.8rem !important;
    border: 1px solid #ddd !important;
    border-radius: 0.4rem !important;
    background: #fff !important;
    color: #000 !important;
    font-weight: 500 !important;
    min-width: 6rem !important;
    height: 3.2rem !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    margin: 0 0.2rem !important;
}

.ui-datepicker select.ui-datepicker-year {
    min-width: 8rem !important;
}

.ui-datepicker select.ui-datepicker-month:hover,
.ui-datepicker select.ui-datepicker-year:hover {
    border-color: #2364CF !important;
}

.ui-datepicker select.ui-datepicker-month:focus,
.ui-datepicker select.ui-datepicker-year:focus {
    outline: none !important;
    border-color: #2364CF !important;
    box-shadow: 0 0 0 2px rgba(35, 100, 207, 0.1) !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    background: transparent !important;
    border: none !important;
    border-radius: 0.4rem !important;
    cursor: pointer !important;
    width: 3.6rem !important;
    height: 3.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ui-datepicker-prev {
    order: 1 !important;
}

.ui-datepicker-next {
    order: 3 !important;
}

.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    background-image: none !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    color: #444 !important;
    font-size: 1.2rem !important;
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.ui-datepicker-prev .ui-icon:before {
    content: '◀' !important;
    display: block !important;
    font-size: 1.6rem !important;
    line-height: 2rem !important;
    color: #444 !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-indent: 0 !important;
}

.ui-datepicker-next .ui-icon:before {
    content: '▶' !important;
    display: block !important;
    font-size: 1.6rem !important;
    line-height: 2rem !important;
    color: #444 !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-indent: 0 !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: transparent !important;
}

.ui-datepicker-prev:hover .ui-icon:before,
.ui-datepicker-next:hover .ui-icon:before {
    opacity: 0.8 !important;
}

.ui-datepicker-calendar {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.ui-datepicker-calendar thead {
    border-bottom: none !important;
}

.ui-datepicker-calendar th {
    color: #797979 !important;
    font-weight: 500 !important;
    font-size: 1.4rem !important;
    padding: 0.8rem 0 !important;
    text-align: center !important;
    border: none !important;
}

.ui-datepicker-calendar td {
    padding: 0.4rem !important;
    text-align: center !important;
    border: none !important;
}

.ui-datepicker-calendar td a {
    color: #000 !important;
    text-align: center !important;
    display: block !important;
    padding: 0.8rem !important;
    border-radius: 0.4rem !important;
    font-size: 1.4rem !important;
    line-height: 2rem !important;
    font-weight: 400 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

.ui-datepicker-calendar td a:hover {
    background: #f5f5f5 !important;
    border-color: transparent !important;
}

.ui-datepicker-calendar .ui-state-active {
    background: #2364CF !important;
    color: #fff !important;
    border-color: #2364CF !important;
}

.ui-datepicker-calendar .ui-state-highlight {
    background: transparent !important;
    border: 1px solid #2364CF !important;
    color: #2364CF !important;
}

.ui-datepicker-calendar .ui-state-disabled {
    opacity: 0.3 !important;
}

.ui-datepicker-calendar .ui-state-disabled a {
    color: #ccc !important;
}

.datepicker_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 1.6rem;
    padding: 2rem;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.datepicker_modal.active {
    opacity: 1;
    visibility: visible;
}

/* 월 선택 팝업 */
.month_picker_popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: 1.6rem;
    border-top-right-radius: 1.6rem;
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.3s;
    z-index: 1001;
}

.month_picker_popup.active {
    transform: translateY(0);
}

.month_picker_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.year_selector {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.year_nav_btn {
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid var(--linegrey);
    border-radius: 0.6rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year_display {
    font-size: 1.8rem;
    line-height: 2.6rem;
    font-weight: 600;
    color: var(--font-black);
}

.month_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.month_item {
    padding: 1.6rem;
    border: 1px solid var(--linegrey);
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.month_item:hover {
    background: var(--background-grey);
}

.month_item.active {
    background: var(--btncolor-2);
    color: var(--white);
    border-color: var(--btncolor-2);
}

/* 빈 상태 */
.empty_state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--font-gray);
    font-size: 1.5rem;
    line-height: 2.2rem;
}

/* 모바일 반응형 */
@media screen and (max-width: 1023px) {
    #contents {
        background: var(--background-grey);
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100%;
        height: auto !important;
    }

    /* 모바일 컨테이너 표시 */
    .national_mobile_container {
        display: block !important;
        width: 100%;
        background: var(--white);
        overflow-x: hidden;
        overflow-y: visible;
        min-height: 100vh;
    }

    .national_mobile_wrapper {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* PC 컨테이너 숨김 */
    .national_container {
        display: none !important;
    }

    .national_container.page_container {
        display: none !important;
    }

    .national_wrapper {
        display: none !important;
    }

    /* 날짜 네비게이션 영역 - 모바일 */
    .date_navigation {
        margin-top: 0;
        margin-bottom: 0;
        background: #f3f6fb;
        padding: 0;
        width: 100%;
        max-width: 100vw;
        height: 9rem;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .date_controls {
        background: transparent;
        border-radius: 0;
        padding: 0;
        justify-content: center;
        gap: 1.2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: hidden;
    }

    .date_display {
        font-size: 3rem;
        line-height: 4.88rem;
        font-weight: 700;
        color: #333;
        letter-spacing: -0.15rem;
    }

    .date_nav_btn {
        width: 3.4rem;
        height: 3.4rem;
    }

    .date_nav_btn svg {
        width: 3.4rem;
        height: 3.4rem;
    }

    /* 뷰 전환 버튼 숨김 - 모바일 */
    .view_toggle_btn {
        display: none !important;
    }

    /* 탭 영역 - 모바일 */
    .national_tabs_wrapper {
        margin-bottom: 0;
        padding: 2rem 0;
        background: var(--white);
        position: sticky;
        top: 9rem;
        z-index: 99;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .national_tabs {
        gap: 1.2rem;
        padding: 0 3rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .national_tab {
        padding: 0.8rem 4rem;
        height: 7rem;
        border-radius: 36.757px;
        font-size: 2.8rem;
        line-height: 3rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 검색 및 카운트 영역 - 모바일 */
    .search_count_area {
        padding: 1.5rem 3rem;
    }

    .match_count {
        font-size: 3rem;
        line-height: 4rem;
        letter-spacing: -0.15rem;
        font-weight: 400;
    }

    .match_count strong {
        color: #F8AD40;
    }

    /* 리스트 헤더 숨김 - 모바일 */
    .list_header {
        display: none !important;
    }

    /* 경기 리스트 - 모바일 카드 형태 (완전 분리) */
    .national_mobile_container .match_list {
        display: block;
        width: 100%;
        padding: 0 3rem 4rem 3rem;
        margin: 0;
        overflow: visible;
        box-sizing: border-box;
        background: transparent;
    }
    
    .national_mobile_container .match_list > * {
        margin-bottom: 2rem;
    }
    
    .national_mobile_container .match_list > *:last-child {
        margin-bottom: 0;
    }

    .national_mobile_container .match_item {
        background: var(--white);
        border: 1px solid #ddd;
        border-radius: 0;
        padding: 2rem 2rem 2rem calc(40px * (100vw / 660));
        display: flex;
        flex-direction: column;
        gap: 1.6rem;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* match_item padding 반응형 조정 */
    @media screen and (max-width: 480px) {
        .national_mobile_container .match_item {
            padding-left: 2rem;
        }
    }
    
    @media screen and (min-width: 720px) {
        .national_mobile_container .match_item {
            padding-left: 4.4rem;
        }
    }

    .match_item_content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        position: relative;
    }

    /* 대회명 - 모바일 */
    .national_mobile_container .match_tournament {
        font-size: 3rem;
        line-height: 4rem;
        font-weight: 700;
        color: #000;
        letter-spacing: -0.15rem;
        text-align: left !important;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        margin-top: 4rem;
        box-sizing: border-box;
    }

    /* 일정·결과 - 모바일 */
    .match_schedule_result {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
        width: 100%;
        max-width: 100%;
        gap: 1.2rem;
        flex-wrap: nowrap !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .team_info {
        display: flex !important;
        align-items: center !important;
        gap: 1.2rem;
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        flex-direction: row !important;
    }

    .team_info.away_team {
        justify-content: flex-end;
        order: 1;
    }

    .team_info.home_team {
        justify-content: flex-start;
        order: 3;
    }

    .score_section {
        order: 2;
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
        display: flex !important;
        align-items: center !important;
    }

    /* 정보 행 (시간, 구장, 상태) - 모바일 */
    .match_info_row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.2rem;
    }

    /* 시간 - 모바일 */
    .match_time {
        font-size: 3rem;
        line-height: 3.6rem;
        color: #444;
        letter-spacing: -0.15rem;
        text-align: left;
        white-space: nowrap;
    }

    /* 진행구장 - 모바일 */
    .match_venue {
        font-size: 3rem;
        line-height: 3.6rem;
        color: #444;
        letter-spacing: -0.15rem;
        text-align: left;
        white-space: nowrap;
    }

    /* 구분 막대기 - 모바일 */
    .info_divider {
        width: 0.2rem;
        height: 2rem;
        background: #DDD;
        flex-shrink: 0;
    }

    .team_logo {
        width: 4.4rem;
        height: 4.4rem;
        border-radius: 50%;
        background: var(--white);
        flex-shrink: 0;
    }

    .team_name {
        font-size: 3rem;
        line-height: 3.6rem;
        color: #000;
        letter-spacing: -0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    .score_section {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
        min-width: fit-content;
        white-space: nowrap;
    }

    .match_score {
        font-size: 3rem;
        line-height: 3.6rem;
        color: #797979;
        letter-spacing: -0.15rem;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        white-space: nowrap;
        font-weight: 400;
    }

    .match_score .score_number {
        color: #000;
        font-weight: 400;
    }

    .match_score .score_number.winner {
        color: #FF002D;
        font-weight: 400;
    }

    /* Live 배지 - 모바일 */
    .national_mobile_container .match_item .live_badge_top {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 8.4rem;
        height: 3.4rem;
        background: #FF002D;
        color: #fff;
        border-radius: 0 0 0.8rem 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: 2.2rem;
        line-height: 3rem;
        font-weight: 400;
        z-index: 10;
    }

    /* 상태 - 모바일 */
    .match_status {
        text-align: left;
    }

    .status_badge {
        font-size: 3rem;
        line-height: 3.6rem;
        letter-spacing: -0.15rem;
    }

    .status_badge.live {
        color: #2364CF;
    }

    .status_badge.scheduled {
        color: #797979;
    }

    .status_badge.finished {
        color: #797979;
    }

    .status_badge.canceled {
        color: #FF002D;
    }

    /* Box Score 버튼 - 모바일 */
    .national_mobile_container .match_action {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .box_score_btn {
        width: 16.5rem;
        height: 6.8rem;
        background: #ecf3ff;
        border: none;
        border-radius: 1.156rem;
        font-size: 2.6rem;
        line-height: 5.55rem;
        color: #444;
        letter-spacing: -0.13rem;
        cursor: pointer;
        text-align: center;
    }

    /* 더보기 버튼 - 모바일 (완전 분리) */
    .national_mobile_container .load_more_btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
        margin: 2rem auto 4rem auto;
        padding: 0;
        background: transparent;
        border: none;
        font-size: 2.6rem;
        line-height: 3rem;
        font-weight: 400;
        color: #797979;
        letter-spacing: -0.13rem;
        cursor: pointer;
        position: relative;
        z-index: 10;
        box-sizing: border-box;
    }

    .national_mobile_container .load_more_btn::after {
        content: '';
        width: 3.4rem;
        height: 3.4rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23797979' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* 캘린더 뷰 숨김 - 모바일 */
    .calendar_wrapper {
        display: none !important;
    }

    /* 날짜 선택 모달 - 모바일 */
    .datepicker_modal_overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 10000 !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .datepicker_modal_overlay[style*="display: flex"] {
        display: flex !important;
    }

    .datepicker_modal_content {
        background: #fff !important;
        border-radius: 0.8rem;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        max-width: 90%;
        width: auto;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0 auto;
        position: relative;
    }

    #datepicker_container {
        width: 100% !important;
    }

    .ui-datepicker {
        background: #fff !important;
        border: none !important;
        border-radius: 0.8rem !important;
        padding: 2rem !important;
        font-family: "Noto Sans KR", sans-serif !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1.8rem !important;
    }
    
    .ui-datepicker table {
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0.8rem !important;
    }
    
    .ui-datepicker th {
        padding: 1.2rem 0 !important;
        font-size: 1.6rem !important;
        font-weight: 600 !important;
    }
    
    .ui-datepicker td {
        padding: 0.6rem !important;
    }
    
    .ui-datepicker td a,
    .ui-datepicker td span {
        display: block !important;
        padding: 1.2rem 0.8rem !important;
        text-align: center !important;
        font-size: 1.8rem !important;
        line-height: 2.4rem !important;
        min-width: 4.4rem !important;
        min-height: 4.4rem !important;
        border-radius: 0.6rem !important;
    }
    
    .ui-datepicker .ui-datepicker-header {
        padding: 0 0 1.6rem 0 !important;
    }
    
    .ui-datepicker .ui-datepicker-title {
        font-size: 2rem !important;
        line-height: 2.8rem !important;
    }
    
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        width: 4.4rem !important;
        height: 4.4rem !important;
    }

    /* 모달 - 모바일 */
    .modal_content {
        width: 95%;
        max-height: 95vh;
        border-radius: 1.6rem;
    }

    .modal_header {
        padding: 1.5rem;
    }

    .modal_title {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .modal_body {
        padding: 1.5rem;
    }
}

/* 로딩 상태 */
.loading_spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 0.4rem solid var(--background-grey);
    border-top-color: var(--btncolor-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
