body.rank {
    background: #08090d center/cover fixed no-repeat;
}

body.rank::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.18);
    box-shadow: inset 0 0 190px 45px rgba(0,0,0,.72);
    pointer-events: none;
}

body.rank .content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    background: transparent !important;
}

.top15-page {
    --panel: linear-gradient(135deg, rgb(0 0 0 / 41%), rgb(0 0 0 / 29%), rgb(43 44 43 / 34%));
    --line: rgba(255,255,255,.16);
    --text: #eef1f5;
    --muted: #8f949d;
    --accent: #55c8c9;
    --green: #4fc786;
    --red: #df7168;
    width: min(1240px,calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 46px;
    color: var(--text);
    font-family: Inter,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
}

.top15-page *,.top15-page *::before,.top15-page *::after {
    box-sizing: border-box;
}

.top15-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    backdrop-filter: blur(9px) saturate(95%);
}

.map-hero {
    position: relative;
    min-height: 190px;
    padding: 16px;
}

.map-loading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sk-card {
    min-height: 156px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.sk {
    display: block;
    height: 13px;
    margin: 10px 0;
    border-radius: 999px;
    background: rgba(255,255,255,.065);
    animation: pulse 1.1s ease-in-out infinite alternate;
}

.sk.title {
    height: 30px;
    width: 65%;
}

.sk.mid {
    width: 72%;
}

.sk.short {
    width: 46%;
}

@keyframes pulse {
    from {
        opacity: .38;
    }

    to {
        opacity: .95;
    }
}

.map-content {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr);
    gap: 14px;
}

.map-main {
    min-width: 0;
    padding: 6px 4px;
}

.map-name-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.map-name {
    margin: 0;
    overflow: hidden;
    color: #eef2f5;
    font-size: clamp(28px,3vw,40px);
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-map {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: #b9c0c9;
    cursor: pointer;
}

.copy-map.is-copied {
    color: #67d99c;
    border-color: rgba(79,199,134,.5);
}

.map-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.map-tag {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #c4cad2;
    font-size: 10px;
    font-weight: 850;
}

.tag-difficulty {
    color: #e9d5ff;
    border-color: rgba(216,180,254,.36);
    background: rgba(126,34,206,.12);
}

.tag-type {
    color: #a7cfd0;
    border-color: rgba(85,200,201,.28);
    background: rgba(85,200,201,.08);
}

.map-tag.is-meta-editable {
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

.map-tag.is-meta-editable:hover {
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.09);
    box-shadow: 0 0 0 2px rgba(255,255,255,.035);
}

.map-tag.is-meta-editable::after {
    content: "\f0d7";
    margin-left: 6px;
    color: rgba(255,255,255,.46);
    font-family: FontAwesome;
    font-size: 9px;
    font-weight: normal;
}

.map-tag.is-meta-editable.is-editing::after,
.map-tag.is-meta-editable.is-saving::after {
    display: none;
}

.map-tag.is-meta-editable.is-saving {
    opacity: .6;
    cursor: wait;
}

.map-meta-inline-select {
    width: 132px;
    min-width: 104px;
    height: 22px;
    padding: 0 22px 0 7px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #151a22;
    color: inherit;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.map-meta-inline-select option {
    background: #151a22;
    color: #eef1f5;
}

.map-meta-edit-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 100000;
    padding: 8px 12px;
    border: 1px solid rgba(79,199,134,.38);
    border-radius: 8px;
    background: rgba(8,12,16,.95);
    color: #77dca2;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%,8px);
    transition: opacity .12s ease, transform .12s ease;
}

.map-meta-edit-toast.is-visible {
    opacity: 1;
    transform: translate(-50%,0);
}

.map-meta-edit-toast.is-error {
    border-color: rgba(223,113,104,.42);
    color: #ef8d87;
}

.map-author-inline {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #a7adb6;
    font-size: 10px;
    font-weight: 750;
}

.map-author-inline img,.record-flag {
    width: 17px;
    height: auto;
    vertical-align: middle;
}

.map-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.map-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(85,200,201,.3);
    border-radius: 8px;
    background: rgba(85,200,201,.08);
    color: #d8eeee;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.map-action.wr {
    color: #f7df83;
    border-color: rgba(216,187,86,.36);
    background: rgba(216,187,86,.08);
}

.record-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.record-card {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.record-card-community-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    object-position: right;
/*    opacity: .12;*/
    pointer-events: none;
    user-select: none;
}

.record-card > :not(.record-card-community-bg) {
    position: relative;
    z-index: 1;
}

.record-card-label {
    color: #858d98;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
}

.record-card-time {
    margin-top: 5px;
    color: #e6ebef;
    font-size: 22px;
    font-weight: 900;
}

.record-card-holder {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #aeb5bd;
    font-size: 11px;
}

.record-card-holder img {
    width: 17px;
}

.map-error {
    display: flex;
    min-height: 156px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #d59aa3;
}

.map-loading[hidden],.map-content[hidden],.map-error[hidden] {
    display: none !important;
}

.records-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.records-panel {
    min-width: 0;
    margin-top: 0;
    padding: 14px;
}

.similar-panel {
    min-width: 0;
    padding: 12px;
}

.similar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.similar-title {
    margin: 0;
    color: #9ba1aa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    white-space: nowrap;
}

.similar-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.similar-tab {
    min-height: 25px;
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: #848c98;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.similar-tab:hover {
    border-color: rgba(85,200,201,.32);
    color: #cbe7e8;
}

.similar-tab.is-active {
    border-color: rgba(85,200,201,.42);
    background: rgba(85,200,201,.10);
    color: #d8f2f2;
}

.similar-list {
    display: grid;
    gap: 8px;
}

.similar-list[hidden],
.similar-loading[hidden],
.similar-error[hidden] {
    display: none !important;
}

.similar-map-item {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
    gap: 10px;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: inherit;
    text-decoration: none;
    transition: border-color .13s ease, background .13s ease, transform .13s ease;
}

.similar-map-item:hover {
    border-color: rgba(178,112,211,.35);
    background: rgba(178,112,211,.055);
    transform: translateY(-1px);
}

.similar-map-thumb {
    width: 100px;
    height: 60px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.similar-map-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-map-copy {
    min-width: 0;
}

.similar-map-name {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-map-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.similar-map-difficulty,
.similar-map-type {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-map-difficulty {
    color: #efb300;
}

.similar-map-type {
    color: #71c7c8;
}

.similar-map-separator {
    flex: 0 0 auto;
    color: #59616c;
}

.similar-loading {
    display: grid;
    gap: 8px;
}

.similar-loading-row {
    height: 72px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    animation: pulse 1s ease-in-out infinite alternate;
}

.similar-error,
.similar-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #7e8792;
    font-size: 10px;
    text-align: center;
}

.similar-retry {
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid rgba(85,200,201,.28);
    border-radius: 7px;
    background: rgba(85,200,201,.07);
    color: #c9e5e5;
    font-size: 9px;
    cursor: pointer;
}

.records-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.records-title {
    margin: 0;
    color: #9ba1aa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.record-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.record-tab {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #9a9fa7;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.record-tab.is-active {
    border-color: rgba(71,194,124,.42);
    background: rgba(35,125,75,.22);
    color: #dff7e8;
}

.record-tab-count {
    color: #777f89;
    font-size: 9px;
}

.record-tab-count.loading {
    width: 14px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: transparent;
    animation: pulse 1s infinite alternate;
}

.weapon-strip {
    overflow-x: auto;
    margin-bottom: 9px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.weapon-row {
    display: grid;
    grid-template-columns: repeat(8,minmax(76px,1fr));
    min-width: 650px;
}

.weapon-button {
    border: 0;
    background: transparent;
    color: #9da5af;
    padding: 7px;
    cursor: pointer;
}

.weapon-button.active_weap {
    color: #eef7f7;
}

.weapon-count {
    font-size: 9px;
    color: #777f89;
}

.table-shell {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
/*    background: var(--panel);*/
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap[hidden],.table-loading[hidden],.table-error[hidden],.pagination[hidden] {
    display: none !important;
}

.table-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.loading-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: var(--panel);
    font-size: 12px;
    color: #c8ced7;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.12);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.table-error {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #d59aa3;
}

#top15Table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    background: transparent;
}

#top15Table th {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgb(121 121 121 / 12%);
    color: #8e949d;
    font-size: 11px;
    font-weight: 850;
    text-align: left;
    white-space: nowrap;
}

#top15Table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #b7bdc5;
    font-size: 12px;
    line-height: 1.45;
}

#top15Table tbody tr:hover {
    background: rgba(85,200,201,.045);
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-mark {
    margin-left: 4px;
    color: #606975;
}

.sortable.is-sort .sort-mark {
    color: var(--accent);
}

.rank-cell {
    width: 64px;
    text-align: center !important;
}

.player-cell {
    min-width: 210px;
}

.player-box {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.player-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: cover;
    cursor: pointer;
}

.player-name-wrap {
    min-width: 0;
}

.player-name-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 800;
    cursor: pointer;
}

.player-link profile {
    font-size: 13px !important;
}

.player-icon {
    font-size: 12px;
}

.player-icon.donor {
    color: #ef767a;
}

.player-icon.message {
    color: #55c8c9;
}

.player-icon.ban {
    color: #e06673;
}

.checkin-icon {
    margin-left: 1px;
}

.time-cell {
    font-size: 13px !important;
    white-space: nowrap;
}

.checkpoint-cell {
    text-align: center !important;
}

.checkpoints {
    display: inline-flex;
    gap: 10px;
}

.hp-god {
    color: #d6a4ff;
}

.hp-good {
    color: #83db9f;
}

.hp-mid {
    color: #e4c66c;
}

.hp-low {
    color: #e9858f;
}

.player-hover-card {
    position: fixed;
    z-index: 99999;
    display: flex;
    min-width: 245px;
    max-width: 330px;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: linear-gradient(135deg,rgba(8,11,16,.98),rgba(28,31,36,.96));
    box-shadow: 0 12px 38px rgba(0,0,0,.48);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .08s ease,transform .08s ease;
}

.player-hover-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.player-hover-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.14);
}

.player-hover-copy {
    min-width: 0;
}

.player-hover-name {
    overflow: hidden;
    color: #eef2f5;
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-hover-info {
    margin-top: 6px;
    color: #9ba4af;
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}

.t15ref-cell {
    min-width: 150px;
    font-size: 11px !important;
}

.t15ref-line {
    display: flex;
    gap: 6px;
    font-size: 11px !important;
    white-space: nowrap;
}

.t15ref-line span {
    font-size: 11px !important;
}

.t15ref-diff-plus {
    color: #df7168 !important;
}

.t15ref-diff-minus {
    color: #65d49a !important;
}

.t15ref-track {
    display: block !important;
    width: 116px !important;
    height: 5px !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.10) !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.t15ref-fill {
    display: block !important;
    height: 5px !important;
    min-height: 5px !important;
    border-radius: 999px !important;
    background: #cf9859 !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}

.t15ref-fill-full {
    background: linear-gradient(90deg,#df7168 0%,#d98a59 28%,#c7a84f 55%,#82b85f 76%,#4fc786 100%) !important;
}

.t15ref-none {
    color: #777f89;
    font-size: 11px !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #8f97a2;
    font-size: 10px;
}

.pagination-left,.page-controls,.page-buttons,.records-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.records-search {
    min-width: 0;
}

.records-search input {
    width: 150px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    background: #0d121957;
    color: #d8dde6;
    font-size: 10px;
}

.records-search input:focus {
    border-color: rgba(85,200,201,.48);
}

.records-search button {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(85,200,201,.30);
    border-radius: 6px;
    background: rgba(85,200,201,.08);
    color: #cfeaea;
    font-size: 10px;
    cursor: pointer;
}

.records-search-clear[hidden] {
    display: none !important;
}

.page-buttons button {
    min-width: 29px;
    min-height: 28px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    color: #aeb5bf;
    font-size: 10px;
    cursor: pointer;
}

.page-buttons button.active {
    border-color: rgba(85,200,201,.48);
    background: rgba(85,200,201,.12);
    color: #e7ffff;
}

.page-buttons button:disabled {
    opacity: .35;
    cursor: default;
}

.page-size select {
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0d1219;
    color: #d8dde6;
    font-size: 10px;
}

.empty {
    padding: 50px !important;
    text-align: center;
    color: #747c87 !important;
}

@media (max-width:1050px) {
    .records-layout {
        grid-template-columns: minmax(0,1fr) 280px;
    }
}

@media (max-width:900px) {
    .records-layout {
        grid-template-columns: 1fr;
    }

    .map-content {
        grid-template-columns: 1fr;
    }

    .map-loading {
        grid-template-columns: 1fr;
    }

    .records-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
    }

    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-left,.page-controls {
        width: 100%;
        justify-content: space-between;
    }

    .records-search {
        flex: 1;
    }

    .records-search input {
        width: 100%;
        min-width: 0;
    }
}

/* ===== 同步 player2：WR / KZCN 紧凑显示 ===== */
.t15ref-main {
    display: inline-grid !important;
    grid-template-columns: max-content;
    width: auto !important;
    max-width: none !important;
    gap: 4px !important;
    align-items: start;
}

.t15ref-line {
    display: flex !important;
    grid-column: 1;
    width: max-content !important;
    gap: 3px !important;
    align-items: baseline;
    white-space: nowrap;
}

.t15ref-line > span {
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.t15ref-track {
    grid-column: 1;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 4px !important;
    margin: 0 !important;
    align-self: stretch;
}

.t15ref-fill {
    height: 4px !important;
    min-height: 4px !important;
}

/* ===== 排行榜加载状态：只显示转圈 ===== */
.loading-pill {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
}

.loading-pill .spinner {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
}

/* ===== 分页文字 / 搜索框垂直对齐 ===== */
.pagination-left {
    align-items: center !important;
}

#pageInfo {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

.records-search {
    min-height: 28px;
    align-items: center !important;
}

.records-search input,
.records-search button {
    height: 28px;
    min-height: 28px;
    box-sizing: border-box;
    line-height: 1;
}


/* =========================================================
   2026-08 地图下载按钮 / 下载地址检测弹窗
   ========================================================= */

.map-action.download {
    color: #f1c27a;
    border-color: rgba(241,194,122,.30);
    background: rgba(241,194,122,.075);
}

.map-action.download:hover {
    color: #ffe0aa;
    border-color: rgba(241,194,122,.48);
    background: rgba(241,194,122,.12);
}

.map-action i {
    font-size: 11px;
}

.top15-map-download-dialog[hidden] {
    display: none !important;
}

.top15-map-download-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000006;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .18s ease;
}

.top15-map-download-dialog.show {
    opacity: 1;
}

.top15-map-download-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.64);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.top15-map-download-card {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 28px));
    max-height: min(600px, calc(100vh - 34px));
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 11px;
    background:
        radial-gradient(circle at 15% 0%, rgba(241,194,122,.06), transparent 34%),
        rgba(15,20,25,.98);
    box-shadow: 0 26px 70px rgba(0,0,0,.56);
    transform: translateY(9px) scale(.986);
    transition: transform .24s cubic-bezier(.22,1,.36,1);
}

.top15-map-download-dialog.show .top15-map-download-card {
    transform: translateY(0) scale(1);
}

.top15-map-download-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    background: rgba(255,255,255,.03);
    color: #919ba4;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.top15-map-download-close:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.top15-map-download-head {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    padding-right: 32px;
    margin-bottom: 13px;
}

.top15-map-download-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241,194,122,.20);
    border-radius: 8px;
    background: rgba(241,194,122,.06);
    color: #f1c27a;
    font-size: 13px;
}

.top15-map-download-head h3 {
    margin: 0;
    color: #e3e8eb;
    font-size: 13px;
    line-height: 1.2;
}

.top15-map-download-name {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7f8992;
    font-size: 11px;
}

.top15-map-download-loading,
.top15-map-download-empty {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #89949c;
    font-size: 11px;
    text-align: center;
}

.top15-map-download-empty i {
    color: #bd8d67;
}

.top15-map-download-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid rgba(255,255,255,.09);
    border-top-color: #f1c27a;
    border-radius: 50%;
    animation: top15MapDownloadSpin .72s linear infinite;
}

@keyframes top15MapDownloadSpin {
    to { transform: rotate(360deg); }
}

.top15-map-download-list {
    display: grid;
    gap: 7px;
}

.top15-map-download-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: inherit;
    text-decoration: none !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.top15-map-download-source:hover {
    transform: translateY(-1px);
    border-color: rgba(241,194,122,.24);
    background: rgba(241,194,122,.04);
}

.top15-map-download-source-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.top15-map-download-format {
    min-width: 36px;
    padding: 3px 5px;
    border-radius: 5px;
    background: rgba(255,255,255,.055);
    color: #c5cdd3;
    font-size: 8px;
    font-weight: 850;
    text-align: center;
}

.top15-map-download-source-copy {
    min-width: 0;
}

.top15-map-download-source-copy strong,
.top15-map-download-source-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top15-map-download-source-copy strong {
    color: #d8dee2;
    font-size: 10px;
}

.top15-map-download-source-copy small {
    margin-top: 2px;
    color: #67727b;
    font-size: 8px;
}

.top15-map-download-source-right {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f1c27a;
}

.top15-map-download-region {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.top15-map-download-region.is-domestic {
    border: 1px solid rgba(111,214,93,.17);
    background: rgba(111,214,93,.07);
    color: #80d574;
}

.top15-map-download-region.is-overseas {
    border: 1px solid rgba(115,191,232,.15);
    background: rgba(115,191,232,.06);
    color: #83c1e2;
}

.top15-map-download-source-right > i {
    font-size: 11px;
}

@media (max-width: 560px) {
    .map-actions {
        flex-wrap: wrap;
    }

    .top15-map-download-dialog {
        padding: 10px;
    }

    .top15-map-download-card {
        width: calc(100vw - 20px);
        padding: 14px;
    }
}
