.tier-list {
    width: 100%;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 2px var(--primary-text);
    overflow: hidden;
    margin-top: 1rem;
    background-color: #fff;
    border: solid 1px #737373;
    display: flex;
    flex-direction: column;
}

.tier-row {
    display: flex;
    border-bottom: solid 1px #737373;
    min-height: 80px;
    height: fit-content;
}
.tier-row:last-child {
    border-bottom: none;
}

.tier-label {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.tier-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px;
    gap: 0.5rem;
    position: relative;
    min-width: 230px;
}
.tier-items.collapsed {
    overflow: hidden;
}
.tier-items.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 70%);
    pointer-events: none;
}
.tier-items .tier-more-btn[hidden] {
    display: none !important;
}
.tier-items .tier-more-btn {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #0d6efd; /* link-like color */
    padding: 2px 6px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    text-align: right;
}
.tier-items .tier-more-btn:hover {
    text-decoration: underline;
}
.player-card {
    display: flex;
    flex-direction: column;
    max-width: 100px;
    border-radius: 4px;
    overflow: hidden;
    justify-content: center;
    cursor: pointer;
}
.player-image {
    width: 100px;
    height: 100px;
}
.player-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.player-name {
    background-color: #333;
    color: #fff;
    padding: 2px 4px;
}

.tier-s .tier-label {
    background-color: #ff7f7f;
    background-image: url('/images/ranking/1.png');
}

.tier-a .tier-label {
    background-color: #ffbf7e;
    background-image: url('/images/ranking/2.png');
}

.tier-b .tier-label {
    background-color: #ffdf7f;
    background-image: url('/images/ranking/3.png');
}

.tier-c .tier-label {
    background-color: #ffff7f;
    background-image: url('/images/ranking/4.png');
}

.tier-d .tier-label {
    background-color: #bfff7f;
    background-image: url('/images/ranking/5.png');
}

.tier-f .tier-label {
    background-color: #7fff7f;
    background-image: url('/images/ranking/6.png');
}

/* Player modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.player-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    margin: auto;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
}
.player-modal-body {
    display: flex;
    gap: 20px;
}
.player-modal-col {
    flex: 1;
}
.player-avatar {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.player-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.player-info-table td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: middle;
}

.player-info-table .title-info {
    font-weight: bold;
}
.highlight-box {
    background: #d1f5d3;
    color: #000;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}
