.match-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.match-table-container {
    border-radius: 12px;
    overflow: auto;
    margin-top: 24px;
    padding-bottom: 8px; /* 하단 스크롤바 공간 */
    
    /* 스크롤바 스타일링 */
    scrollbar-width: thin;  /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;  /* Firefox */
}

/* Chrome, Safari, Edge 스크롤바 스타일링 */
.match-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.match-table-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.match-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.match-table-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 스크롤바 코너 스타일링 */
.match-table-container::-webkit-scrollbar-corner {
    background: transparent;
}

.match-table {
    width: 100%;
    min-width: 700px;
    table-layout: auto;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
}

.match-table th {
    background-color: var(--primary-color-5);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: center;
    word-break: keep-all;
}

.match-table td {
    border: 1px solid #ddd;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: center;
    word-break: keep-all;
}

.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-division {
    font-weight: 500;
}

.match-time {
    color: var(--text-muted);
    font-size: 14px;
}

.player-name {
    font-weight: 500;
}

.player-name p {
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-name.winner {
    color: var(--primary-color);
    position: relative;
}

.player-dupr {
    color: var(--text-muted);
    font-size: 14px;
}

.score-cell {
    font-weight: 500;
}

.game-score {
    padding: 4px 0;
    text-align: center;
}

.game-type {
    color: var(--text-muted);
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.completed {
    background-color: #DCFCE7;
    color: #16A34A;
    cursor: pointer;
}

.status-badge.in-progress {
    background-color: #FEF9C3;
    color: #CA8A04;
}

.status-badge.pending {
    background-color: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
}

.no-matches {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    color: var(--text-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .match-container {
        padding: 16px;
    }

    .match-table th,
    .match-table td {
        padding: 12px;
        font-size: 14px;
    }

    .game-scores {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .match-container {
        padding: 12px;
    }
    
    .match-table-container {
        margin-top: 16px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    padding: 20px;
    background: white;
    border-radius: 8px;
    font-weight: bold;
}

.dupr-submission-guide {
    margin-bottom: 16px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--primary-color-10);
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    color: #475569;
    transition: all 0.3s ease;
    background-color: var(--primary-color-5);
}

.dupr-submission-guide .guide-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dupr-submission-guide .guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.dupr-submission-guide .guide-icon {
    color: var(--primary-color);
}

.dupr-submission-guide .arrow-icon {
    transition: transform 0.3s ease;
}

.dupr-submission-guide.collapsed .arrow-icon {
    transform: rotate(-90deg);
}

.dupr-submission-guide .guide-content {
    padding: 0 16px 16px;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dupr-submission-guide.collapsed .guide-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.dupr-submission-guide .guide-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.dupr-submission-guide .guide-list li {
    position: relative;
    padding: 4px 0;
    line-height: 1.5;
}

.dupr-submission-guide .guide-list li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: var(--primary-hover-color);
}

.guide-highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.guide-warning {
    color: #dc2626;
    font-weight: 500;
}

.guide-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin: 0 2px;
    font-weight: 500;
}

.guide-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.guide-icon {
    color: #3b82f6;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.guide-content {
    padding: 0 16px 16px;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}
