.woc-table .tourney-player-identity {
    /* inline 이면 clientWidth=0 → adjustNameSize 의 폭 초과 판정(el.scrollWidth > parent.clientWidth)이
       항상 참이 되어 사진 이름이 무조건 최소 폰트(8px)까지 축소된다. inline-block 으로 폭을 갖게 한다. */
    display: inline-block;
    width: auto;
    max-width: 100%;
    vertical-align: baseline;
}

.tourney-player-photo-name {
    display: inline;
    min-width: 0;
    cursor: pointer;
}

.tourney-player-photo-name .name-auto {
    cursor: pointer;
}

.tourney-player-name-prefix {
    display: inline;
}

.tourney-player-name-photo-tail {
    display: inline-flex;
    align-items: center;
    line-height: inherit;
    vertical-align: baseline;
    white-space: nowrap;
}

.woc-table td > div span.tourney-player-identity a.name-auto,
.woc-table .tourney-player-identity a.name-auto {
    /* inline-block: display:inline !important 이면 tourney_result.js adjustNameSize 의
       scrollWidth/scrollHeight 측정이 0이 되어 폰트 축소가 아예 안 돌고, 긴 성이 셀을 뚫었다.
       사진 없는 이름(JS가 inline-block 지정)과 동일하게 측정·축소되도록 맞춘다. */
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal;
}

.tourney-photo-marker-trigger {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 0 0 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    vertical-align: middle;
    transform: none;
    cursor: pointer;
}

.woc-table img.tourney-photo-marker,
img.tourney-photo-marker {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 대진표 사진: 모바일 32px, PC 36px. 이름/국기·레이팅 안쪽, 결과 중앙. */
.woc-table .tourney-match-layout {
    --tourney-match-avatar-size: 32px;
    --tourney-match-avatar-width: var(--tourney-match-avatar-size);
    position: relative;
    display: grid;
    grid-template-rows: repeat(2, 18px);
    row-gap: 0;
    padding-inline: calc(var(--tourney-match-avatar-width) + 4px);
    min-width: 0;
}

.woc-table .tourney-match-avatar-slot {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    width: var(--tourney-match-avatar-width);
}

.woc-table .tourney-match-avatar-black { left: var(--tourney-black-inset, 0px); }
.woc-table .tourney-match-avatar-white { right: var(--tourney-white-inset, 0px); }

.woc-table .tourney-match-avatar {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    height: var(--tourney-match-avatar-size);
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #eef1f5;
}

.woc-table .tourney-match-avatar img {
    display: block;
    width: 100%;
    height: var(--tourney-match-avatar-size);
    object-fit: cover;
}

.woc-table .tourney-match-names,
.woc-table .tourney-match-heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    min-width: 0;
    text-align: left;
}

.woc-table .tourney-match-heading {
    text-align: center;
}

.woc-table .tourney-match-name-black {
    padding-left: var(--tourney-black-inset, 0px);
}

.woc-table .tourney-match-name-white {
    text-align: right;
    padding-right: var(--tourney-white-inset, 0px);
}

.woc-table .tourney-match-player {
    position: relative;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    min-width: 0;
    line-height: 18px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.woc-table .tourney-match-player .tourney-player-identity,
.woc-table .tourney-match-player .name-auto,
.woc-table .tourney-match-player .tourney-player-identity .name-auto {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    line-height: inherit;
    white-space: nowrap;
    vertical-align: baseline;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.woc-table td.tourney-match-index {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    padding-left: 2px;
    padding-right: 2px;
}

.woc-table .tourney-match-flag {
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
    line-height: 1;
    margin: 0;
}

.woc-table .tourney-match-flag .flag-img {
    display: block;
    box-sizing: border-box;
}

.woc-table .tourney-match-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 18px;
    line-height: 18px;
    gap: 4px;
}

.woc-table .tourney-match-meta {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    gap: 4px;
    white-space: nowrap;
}

.woc-table .tourney-match-meta-black {
    margin-left: var(--tourney-black-inset, 0px);
}

.woc-table .tourney-match-meta-white {
    justify-self: end;
    flex-direction: row-reverse;
    margin-right: var(--tourney-white-inset, 0px);
}

.woc-table .tourney-match-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    white-space: nowrap;
}

.woc-table .tourney-match-result > .match-result,
.woc-table .tourney-match-result > .result-link {
    min-width: 44px;
}

.woc-table .tourney-match-disc {
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1px solid #94a3b8;
    border-radius: 50%;
}

.woc-table .tourney-match-disc-black { background: #111; }
.woc-table .tourney-match-disc-white { background: #fff; }

.woc-table .tourney-match-rating {
    display: inline;
    white-space: nowrap;
    /* Player 탭의 rating-value 셀과 같은 글자 크기·색상을 상속한다. */
    font-size: inherit;
    color: inherit;
}

.woc-table .tourney-match-rating:empty {
    display: none;
}

@media (max-width: 768px) {
    .woc-table[data-tourney-match-table] col:first-child { width: 32px !important; }
}

@media (min-width: 769px) {
    .woc-table .tourney-match-layout { --tourney-match-avatar-size: 36px; }
}

.tourney-player-photo-tooltip {
    position: fixed;
    display: none;
    pointer-events: none;
    z-index: 99999;
    padding: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tourney-player-photo-tooltip img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.ftd-player-identity-block {
    flex: 0 1 auto;
    min-width: 0;
}

.woc-table .tourney-standings-player {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 0;
    text-align: left;
}

.woc-table .tourney-standings-avatar {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #eef1f5;
}

.woc-table .tourney-standings-avatar img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.woc-table .tourney-match-avatar img,
.woc-table .tourney-standings-avatar img {
    box-sizing: border-box;
    border: 2px solid var(--tourney-player-photo-border, #ddd);
    border-radius: inherit;
}

.woc-table .tourney-standings-copy {
    flex: 1 1 0;
    min-width: 0;
}

.woc-table .tourney-standings-name {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
}

.woc-table .tourney-standings-name .name-auto {
    display: inline-block !important;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
}

.woc-table .tourney-standings-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    white-space: nowrap;
}

.woc-table .tourney-standings-flag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.woc-table .tourney-standings-player .flag-img {
    width: 22px !important;
    height: 15px !important;
}

.woc-table .tourney-standings-name > .tourney-player-games-link {
    display: inline-flex !important;
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px;
}

.woc-table .tourney-standings-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
}

.woc-table .tourney-standings-rating .tourney-rating-delta {
    margin-top: 0;
}

.woc-table.tourney-standings-table td:first-child {
    white-space: nowrap;
    padding-left: 2px;
    padding-right: 2px;
}

html.fs-app-theme-dark .tourney-match-avatar,
body.fs-app-theme-dark .tourney-match-avatar,
[data-bs-theme="dark"] .tourney-match-avatar,
html.fs-app-theme-dark .tourney-standings-avatar,
body.fs-app-theme-dark .tourney-standings-avatar,
[data-bs-theme="dark"] .tourney-standings-avatar {
    --tourney-player-photo-border: #344258;
    background: #283346;
}

.tourney-player-games-link {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    /* 이름 바로 뒤에서는 SVG 내부 여백 자체가 사진 아이콘 왼쪽의 보이는 간격과 맞는다. */
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5f6b7a;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.tourney-player-games-link:hover,
.tourney-player-games-link:focus-visible {
    background: #edf3ff;
    color: #254ead;
    outline: none;
}

.tourney-player-games-link svg,
.tourney-player-games-back svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 순위 행 전체가 선수 대회 경기 링크로 동작하므로(tourney_result.js setupStandingsRowLinks) 행에 손가락 커서(2026-09-07). */
.tourney-container tr:has(.tourney-standings-player .tourney-player-games-link) { cursor: pointer; }
/* 호버 표시는 아레나 순위 행(.ah-table tbody tr[data-arena-player-filter]:hover)과 같은 값을 그대로 쓴다(2026-09-07 요청).
   줄무늬가 td 배경으로 칠해질 수 있어 행과 셀 양쪽에 건다. */
.tourney-container tr:has(.tourney-standings-player .tourney-player-games-link):hover,
.tourney-container tr:has(.tourney-standings-player .tourney-player-games-link):hover > td { background: #f1f5f9; }
html.fs-app-theme-dark .tourney-container tr:has(.tourney-standings-player .tourney-player-games-link):hover,
html.fs-app-theme-dark .tourney-container tr:has(.tourney-standings-player .tourney-player-games-link):hover > td { background: var(--fs-app-surface-2, #1b2738); }

.tourney-player-games-page-mode > .tab-content,
.tourney-player-games-page-mode > .tourney-data-source {
    display: none !important;
}

.tourney-player-games-page {
    width: 100%;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #d7dde7;
    border-radius: 14px;
    background: #fff;
    color: #172033;
}

.tourney-player-games-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 18px;
    border-bottom: 1px solid #e4e8ef;
}

.tourney-player-games-back {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #4b5563;
}

.tourney-player-games-back:hover,
.tourney-player-games-back:focus-visible {
    background: #eef1f5;
    color: #111827;
    outline: none;
}

.tourney-player-games-heading {
    min-width: 0;
}

.tourney-player-games-heading h1 {
    margin: 0;
    overflow: hidden;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tourney-player-games-heading p {
    margin: 3px 0 0;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tourney-player-games-body {
    width: 100%;
    overflow-x: auto;
}

.tourney-player-games-table {
    margin: 0 !important;
}

.tourney-player-games-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.tourney-player-games-table td:first-child {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.tourney-player-games-empty {
    margin: 0;
    padding: 36px 20px;
    color: #7a8494;
    text-align: center;
}

html.fs-app-theme-dark .tourney-player-games-link,
body.fs-app-theme-dark .tourney-player-games-link,
[data-bs-theme="dark"] .tourney-player-games-link {
    color: #a7b2c3;
}

html.fs-app-theme-dark .tourney-player-games-link:hover,
html.fs-app-theme-dark .tourney-player-games-link:focus-visible,
body.fs-app-theme-dark .tourney-player-games-link:hover,
body.fs-app-theme-dark .tourney-player-games-link:focus-visible,
[data-bs-theme="dark"] .tourney-player-games-link:hover,
[data-bs-theme="dark"] .tourney-player-games-link:focus-visible {
    background: #243149;
    color: #8fb4ff;
}

html.fs-app-theme-dark .tourney-player-games-page,
body.fs-app-theme-dark .tourney-player-games-page,
[data-bs-theme="dark"] .tourney-player-games-page {
    border-color: #344258;
    background: #111a28;
    color: #eef3fb;
}

html.fs-app-theme-dark .tourney-player-games-page-header,
body.fs-app-theme-dark .tourney-player-games-page-header,
[data-bs-theme="dark"] .tourney-player-games-page-header {
    border-bottom-color: #344258;
}

html.fs-app-theme-dark .tourney-player-games-back,
body.fs-app-theme-dark .tourney-player-games-back,
[data-bs-theme="dark"] .tourney-player-games-back {
    color: #c4cede;
}

html.fs-app-theme-dark .tourney-player-games-back:hover,
html.fs-app-theme-dark .tourney-player-games-back:focus-visible,
body.fs-app-theme-dark .tourney-player-games-back:hover,
body.fs-app-theme-dark .tourney-player-games-back:focus-visible,
[data-bs-theme="dark"] .tourney-player-games-back:hover,
[data-bs-theme="dark"] .tourney-player-games-back:focus-visible {
    background: #243149;
    color: #fff;
}

@media (max-width: 520px) {
    .woc-table .tourney-match-player .name-auto {
        font-size: 14px;
    }

    .woc-table .tourney-match-meta .flag-img {
        width: 20px !important;
        height: 14px !important;
    }

    .tourney-player-games-page {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .tourney-player-games-page-header {
        padding: 10px 8px;
    }

    .tourney-player-games-heading h1 {
        font-size: 18px;
    }

    .tourney-player-games-table th,
    .tourney-player-games-table td {
        padding: 9px 4px !important;
    }

    .tourney-player-games-table td:first-child {
        font-size: 11px;
    }
}
