/* KPARASPO 사용자 - 대회 상세 */

.t-detail-header {
    background: #ffffff;
    border: 1px solid #e3e5ec;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.t-detail-title {
    color: #171b34;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    letter-spacing: 0;
    position: relative;
}
.t-detail-period {
    color: #7b8192;
    font-size: 14px;
    font-weight: 500;
}
.t-detail-venue {
    color: #6d7280;
    font-size: 15px;
    margin: 0;
}
.t-detail-badge {
    margin-bottom: 0;
}
.t-detail-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.t-detail-meta {
    display: flex;
    gap: 18px;
    color: #6d7280;
    font-size: 15px;
    line-height: 1.5;
    flex-wrap: wrap;
}
.t-info-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.t-info-section-head h2 {
    margin: 0;
    color: #171b34;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}
.t-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}
.t-info-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid #edf0f5;
}
.t-info-item:last-child {
    border-bottom: 0;
}
.t-info-item dt {
    color: #8b90a0;
    font-size: 15px;
    font-weight: 600;
}
.t-info-item dd {
    margin: 0;
    color: #171b34;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}
.t-info-desc {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f8f9fc;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    white-space: pre-wrap;
}
.t-info-desc strong {
    display: block;
    margin-bottom: 8px;
    color: #8b90a0;
    font-size: 13px;
    font-weight: 700;
}
.t-info-desc p {
    margin: 0;
    color: #4f5668;
    font-size: 15px;
    line-height: 1.7;
}

.t-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.t-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 16px;
    align-items: center;
    min-height: 120px;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #e3e5ec;
    border-radius: 0;
}
.t-event-card:last-child {
    border-bottom: 1px solid #e3e5ec;
}
.t-event-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}
.t-event-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.t-event-abbr {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2ecff;
    color: #7546d8;
    font-size: 13px;
    font-weight: 700;
}
.t-event-type {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f8f9fc;
    color: #4f5668;
    font-size: 13px;
    font-weight: 700;
}
.t-event-full {
    display: block;
    color: #171b34;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.32;
}
.t-event-class {
    display: block;
    margin-top: 0;
    color: #8b90a0;
    font-size: 14px;
    font-weight: 600;
}
.t-event-stats {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.t-event-stats span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f8f9fc;
    color: #4f5668;
    font-size: 14px;
    font-weight: 700;
}

/* 조별 간이 리그표 */
.u-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.u-group-card {
    background: var(--lbp-surface);
    border: 1px solid #e3e5ec;
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}
.u-group-card-header {
    background: #34384a;
    border-bottom: 1px solid #34384a;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 16px;
    font-size: 15px;
}

@media (max-width: 1200px) {
    .t-events-grid,
    .u-groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .t-detail-header {
        padding: 20px 18px;
    }
    .t-detail-title {
        font-size: 22px;
    }
    .t-detail-meta {
        gap: 6px;
        flex-direction: column;
    }
    .t-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .t-info-item {
        grid-template-columns: 88px 1fr;
        border-bottom: 1px solid #edf0f5;
    }
    .t-info-item:last-child {
        border-bottom: 0;
    }
    .t-event-card {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: flex-start;
    }
    .t-event-stats {
        justify-content: flex-start;
    }
}

.u-group-card-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.u-group-card-body th,
.u-group-card-body td {
    padding: 15px 16px;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
    text-align: center;
}
.u-group-card-body th {
    background: #f8f9fc;
    color: #6d7280;
    font-weight: 700;
}
.u-group-card-body td:first-child,
.u-group-card-body th:first-child { text-align: left; }

.t-schedule-table th,
.t-schedule-table td {
    text-align: center;
}
.t-schedule-search-field {
    min-width: min(360px, 100%);
}
.t-schedule-search-field .search-box-wrapper {
    position: relative;
    display: flex;
    flex: 1 1 280px;
    min-width: 220px;
}
.t-schedule-search-field .search-box-wrapper svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #8b90a0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}
.t-schedule-search-field .search-box-wrapper input {
    width: 100%;
    min-width: 0;
    padding-left: 40px;
    padding-right: 14px;
}
.t-schedule-search-field .search-box-wrapper:focus-within svg {
    stroke: #7546d8;
}
.t-schedule-result-count {
    margin: 0 0 0 auto;
    color: #6d7280;
    font-size: 14px;
    font-weight: 700;
    line-height: 40px;
    white-space: nowrap;
}
#tScheduleView {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.t-schedule-table {
    min-width: 1040px;
}
.t-schedule-table .team-tie-schedule {
    min-width: 180px;
    color: #4f5668;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

/* 본선토너먼트 */
.match-no {
    color: #8b90a0;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}
.bracket-line-scroll {
    overflow-x: auto;
    padding: 4px 0 8px;
}
.bracket-line-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 0;
    min-width: 880px;
}
.bracket-line-round {
    min-width: 0;
    padding: 0 20px;
    border-left: 1px solid #dddddd;
}
.bracket-line-round:first-child {
    padding-left: 0;
    border-left: 0;
}
.bracket-line-title {
    margin-bottom: 18px;
    color: #7546d8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.bracket-line-match {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    gap: 16px;
    align-items: center;
    min-height: 100px;
    border-top: 1px solid #edf0f5;
}
.bracket-line-players {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.bracket-line-players strong {
    overflow: hidden;
    color: #4f5668;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bracket-line-players strong.is-winner {
    color: #171b34;
    font-weight: 600;
}
.bracket-line-players strong.is-loser {
    color: #999999;
}
.bracket-line-match em {
    color: #8b90a0;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bracket-line-grid {
        grid-auto-flow: row;
        grid-auto-columns: initial;
        grid-template-columns: 1fr;
        min-width: 0;
    }
    .bracket-line-round {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid #edf0f5;
    }
    .bracket-line-round:first-child {
        padding-top: 0;
        border-top: 0;
    }
    .t-schedule-search-field .search-box-wrapper {
        width: 100%;
        min-width: 0;
    }
    .t-schedule-result-count {
        width: 100%;
        margin-left: 0;
        line-height: 1.4;
        text-align: right;
    }
}
