/*********************
    index.php
*********************/
#indexLoadImg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 2.5rem;
    background-color: #fff;
}

#indexLoadImg img {
    width: 25.6rem;
}

#indexLoadImg .indexSubText {
    text-align: center;
    font-size: 2rem;
    line-height: 1.4;
}

#indexLoadImg h1 {
    font-family: Pretendard, sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 170%;
    letter-spacing: 0;
    text-align: center;
    color: var(--brand-color);
}

#indexLoadImg .indexBtn {
    color: #fff;
    width: -webkit-fill-available;
    max-width: 480px;
    background-color: var(--brand-color);
    margin: 0 2rem;
    font-size: 2rem;
    text-align: center;
    padding: 1.6rem;
    border-radius: 1rem;
    transform: translateY(3rem);
}


/*********************
    home.php
*********************/
#wrap.home-wrap {
}

#wrap.home-wrap > main {
}

#wrap.home-wrap main > .container {
    gap: 2.7rem;
}

#wrap.home-wrap #datePickerBar.date-picker-bar {
}

#wrap.home-wrap #prevDateBtn.date-nav-btn.prev {
}

#wrap.home-wrap #dateDisplayBtn.date-display-btn {
}

#wrap.home-wrap #selectedDateText {
}

#wrap.home-wrap #nextDateBtn.date-nav-btn.next {
}

#wrap.home-wrap #hiddenDateInput.date-picker-input {
}

#wrap.home-wrap .highlight-link {
    background: var(--brand-color);
    border-radius: 1rem;
    width: 100%;
}

#wrap.home-wrap .highlight-link > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.7rem 2rem;
}

#wrap.home-wrap .highlight-link .left {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#wrap.home-wrap .highlight-link .left > b {
}

#wrap.home-wrap .highlight-link .update-date {
    color: #fff;
    opacity: 0.5;
    font-size: 1.3rem;
    font-weight: 400;
}

#wrap.home-wrap .highlight-link .right {
    color: var(--brand-color);
    font-size: 1.6rem;
    font-weight: 500;
    background: #fff;
    border-radius: 60rem;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrap.home-wrap .match-wrap {
}

#wrap.home-wrap .match-empty {
    box-sizing: border-box;
    background: #fff;
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

#wrap.home-wrap .match-empty-title {
    margin: 0 0 0.8rem;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #333;
}

#wrap.home-wrap .match-empty-desc {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1;
    color: #333;
}

#wrap.home-wrap .match-wrap > ul.match-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.7rem;
}

#wrap.home-wrap .match-wrap ul.match-list > li.match-card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 2rem;
    padding: 2.7rem 2rem;
}

#wrap.home-wrap .match-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4.5rem;
}

#wrap.home-wrap .match-card-header .kbo-game-status-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.3;
}

/* 상태 키(scheduled|live|final) — 홈 카드 헤더 배지(레이아웃 블록과 동일 맥락으로 특이도 맞춤) */
#wrap.home-wrap .match-card-header .kbo-game-status-badge--scheduled {
    background: #e4f3fe;
    color: var(--brand-color2);
}

#wrap.home-wrap .match-card-header .kbo-game-status-badge--live {
    background: #f4f4f4;
    color: #333;
}

#wrap.home-wrap .match-card-header .kbo-game-status-badge--final {
    background: #f4f4f4;
    color: #333;
}

/* 카드 전체: li.match-card--scheduled | --live | --final (필요 시 여기서 테두리/배경 추가) */

#wrap.home-wrap .match-card-header .match-channel {
    flex: 1;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    text-align: left;
    color: #333;
    letter-spacing: 0.01rem;
}

#wrap.home-wrap .match-card-header .match-stadium-time {
    flex-shrink: 0;
    margin-left: auto;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1;
    color: #333;
    white-space: nowrap;
}

#wrap.home-wrap .match-stadium-time-sep {
    margin: 0 0.4rem;
    font-weight: 500;
    color: #333;
    font-size: 1.5rem;
}

#wrap.home-wrap .match-card-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 0.8rem;
}

#wrap.home-wrap .match-card-body .match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    min-width: 0;
}

#wrap.home-wrap .match-team-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

#wrap.home-wrap .match-team-logo {
    height: 1.6rem;
    flex-shrink: 0;
}

#wrap.home-wrap .match-team-name {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1;
    color: #333;
}

#wrap.home-wrap .match-team-score {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.1;
    color: #333;
}

/* 경기중: 양쪽 점수 진회색 */
#wrap.home-wrap .match-team-score--in-play {
    color: #333;
    font-weight: 500;
}

/* 경기종료: 승 점수 붉은색, 패 점수 회색 */
#wrap.home-wrap .match-team-score--winner {
    color: #FF0000;
    font-weight: 700;
}

#wrap.home-wrap .match-team-score--loser {
    color: #B3B3B3;
    font-weight: 500;
}

#wrap.home-wrap .match-team-pitcher {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1;
    color: #333;
}

#wrap.home-wrap .match-team-pitcher-label {
    font-size: 1.3rem;
    font-weight: 300;
    color: #333;
    margin-right: 0.3rem;
}

/* 경기종료: 승/패 라벨 색 (점수와 별도) */
#wrap.home-wrap .match-team-pitcher-label.is-record-win {
    color: #FF0000;
    font-weight: 600;
}

#wrap.home-wrap .match-team-pitcher-label.is-record-loss {
    color: #2600FF;
    font-weight: 600;
}

#wrap.home-wrap .match-card-body .match-vs {
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: #333;
    padding: 0 0.4rem;
    align-self: center;
}
