body.rank {
    background-color: #08090d;
}

.player-background-root {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.player-background-root > video,
.player-background-root > .player-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.player-background-root > video {
    z-index: 2;
    object-fit: cover;
    opacity: 0;
    transition: opacity .18s ease;
}
.player-background-root > video.is-ready {
    opacity: 1;
}
.player-background-root > .player-background-image {
    z-index: 1;
}
.player-background-root > .player-background-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.player-page {
    --panel: linear-gradient(135deg, rgb(0 0 0 / 25%), rgb(48 47 47 / 57%), rgb(90 90 90 / 83%));
    --panel-strong: rgba(12, 16, 23, .98);
    --panel-soft: rgba(18, 23, 31, .94);
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #eef1f5;
    --muted: #8f949d;
    --muted-2: #666d78;
    --accent: #55c8c9;
    --accent-soft: rgba(38, 135, 137, .28);
    --green: #4fc786;
    --gold: #d8bb56;
    --purple: #b165dc;
    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;
}

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

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


.profile-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 72px minmax(420px, .92fr);
    gap: 12px;
    padding: 15px;
}

.vip-flash-badge {
    position: relative;
    display: flex;
    min-width: 0;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vip-flash-core {
    position: relative;
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
}

.vip-flash-core > .fa {
    position: relative;
    display: inline-block;
    font-size: 52px;
    line-height: 1;
    transform: skewX(-4deg);
    transform-origin: 50% 50%;
}

.vip-flash-badge::before,
.vip-flash-badge::after,
.vip-flash-core::before,
.vip-flash-core::after {
    content: none !important;
    display: none !important;
}

.vip-flash-badge.vip-flash--0 .vip-flash-core > .fa {
    color: #707780;
    opacity: .58;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
    text-shadow: none;
    animation: none;
}

.vip-flash-badge.vip-flash--1 .vip-flash-core > .fa {
    color: #68d7d9;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow:
        0 0 7px rgba(85, 200, 201, .42),
        0 0 14px rgba(85, 200, 201, .18);
    filter: drop-shadow(0 0 4px rgba(85, 200, 201, .24));
    animation: vip-flash-v1 2.2s ease-in-out infinite;
}

.vip-flash-badge.vip-flash--2 .vip-flash-core > .fa {
    color: #a98cff;
    background: linear-gradient(180deg, #d6c8ff 0%, #a98cff 48%, #70cfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter:
        drop-shadow(0 0 5px rgba(169, 140, 255, .55))
        drop-shadow(0 0 11px rgba(92, 190, 255, .28));
    animation: vip-flash-v2-breathe 1.9s ease-in-out infinite;
}

.vip-flash-badge.vip-flash--3 .vip-flash-core > .fa {
    color: #d9a7ff;
    background: linear-gradient(
        90deg,
        #74e8f1 0%,
        #9d8cff 20%,
        #d68cff 40%,
        #ff9ec9 58%,
        #ffd27a 76%,
        #89efcf 90%,
        #74e8f1 100%
    );
    background-size: 320% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter:
        drop-shadow(0 0 5px rgba(183, 140, 255, .58))
        drop-shadow(0 0 11px rgba(104, 226, 239, .34));
    animation:
        vip-flash-v3-color 3.2s linear infinite,
        vip-flash-v3-breathe 1.8s ease-in-out infinite;
}

@keyframes vip-flash-v1 {
    0%, 100% {
        opacity: .72;
        transform: skewX(-4deg) scale(.98);
    }
    50% {
        opacity: 1;
        transform: skewX(-4deg) scale(1.055);
    }
}

@keyframes vip-flash-v2-breathe {
    0%, 100% {
        transform: skewX(-4deg) scale(.96);
    }
    50% {
        transform: skewX(-4deg) scale(1.08);
    }
}

@keyframes vip-flash-v3-color {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 320% 50%;
    }
}

@keyframes vip-flash-v3-breathe {
    0%, 100% {
        transform: skewX(-4deg) scale(.96);
    }
    50% {
        transform: skewX(-4deg) scale(1.10);
    }
}

.profile-identity {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}

.profile-avatar {
    position: relative;
    width: 142px;
    height: 142px;
}

.profile-avatar-frame {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #11141a;
}

.profile-avatar img {
    display: block;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.profile-avatar img.profile-steam-avatar-frame {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 121.74% !important;
    height: 121.74% !important;
    max-width: none !important;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.profile-steam-avatar-frame[hidden] {
    display: none !important;
}

.profile-presence {
    position: absolute;
    z-index: 4;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    border: 3px solid #12151c;
    border-radius: 50%;
    background: #626975;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .28);
}

.profile-copy {
    min-width: 0;
    padding: 2px 0;
}

.profile-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.profile-name {
    margin: 0;
    overflow: hidden;
    color: #e7e9ee;
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.profile-name profile {
    font-size: inherit;
}

.profile-meta {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    color: #afb4bd;
    font-size: 12px;
    line-height: 1.35;
}

.profile-meta-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.profile-meta-label {
    flex: 0 0 auto;
    color: #777e89;
    font-weight: 750;
}

.profile-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-meta-value a {
    color: #a9c9ef;
}

.profile-steam-sync-tip {
    margin-top: 2px;
    padding-left: 0;
    color: #7f8894;
    font-size: 10px;
    line-height: 1.5;
}

.profile-steam-sync-tip strong {
    color: #9fcfd0;
    font-weight: 800;
}

.profile-steam-sync-tip[hidden] {
    display: none !important;
}

.profile-server-link {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #a9c9ef !important;
    text-decoration: none;
}
.profile-server-link > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-server-join {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid rgba(79,199,134,.34);
    border-radius: 6px;
    background: rgba(79,199,134,.12);
    color: #bff0d2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.profile-server-link:hover .profile-server-join {
    border-color: rgba(79,199,134,.58);
    background: rgba(79,199,134,.20);
    color: #e0f8e9;
}

.profile-meta-value .container {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    gap: 4px;
}

.profile-meta-value .overlay {
    display: none !important;
}

.profile-meta-value img {
    width: 18px;
    max-width: 18px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.profile-action,
.player-page .btn-send-message {
    display: inline-flex !important;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .045) !important;
    color: #d8dde6 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease !important;
}

.profile-action:hover,
.player-page .btn-send-message:hover {
    transform: translateY(-1px);
    border-color: rgba(66, 198, 200, .45) !important;
    background: rgba(66, 198, 200, .10) !important;
}

.rank-card {
    --rank-accent: #55c8c9;
    --rank-glow: rgba(85, 200, 201, .20);
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(74, 210, 211, .42);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(25, 66, 69, .82), rgba(17, 30, 40, .92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 12px 30px rgba(0,0,0,.16);
    isolation: isolate;
}
.rank-card > * {
    position: relative;
    z-index: 2;
}
.rank-card::before {
    content: "";
    position: absolute;
    inset: -70% -45%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-42%) rotate(14deg);
    background: linear-gradient(100deg,
        transparent 36%,
        rgba(255,255,255,.02) 43%,
        rgba(255,255,255,.24) 50%,
        rgba(255,255,255,.04) 57%,
        transparent 64%);
}
.rank-card.is-shimmer::before {
    opacity: 1;
    animation: rank-card-shimmer 3.8s linear infinite;
}
@keyframes rank-card-shimmer {
    0%   { transform: translateX(-46%) rotate(14deg); }
    100% { transform: translateX(46%) rotate(14deg); }
}

.rank-card.rank-card--lv1 {
    --rank-accent: #9ba4b0;
    --rank-glow: rgba(155,164,176,.10);
    border-color: rgba(155,164,176,.24);
    background: linear-gradient(145deg, rgba(35,40,49,.90), rgba(17,21,28,.96));
}
.rank-card.rank-card--lv2 {
    --rank-accent: #8fb9d9;
    --rank-glow: rgba(143,185,217,.13);
    border-color: rgba(143,185,217,.30);
    background: linear-gradient(145deg, rgba(25,48,66,.91), rgba(17,26,38,.96));
}
.rank-card.rank-card--lv3 {
    --rank-accent: #62c3c1;
    --rank-glow: rgba(98,195,193,.15);
    border-color: rgba(98,195,193,.34);
    background: linear-gradient(145deg, rgba(20,62,64,.91), rgba(16,31,39,.96));
}
.rank-card.rank-card--lv4 {
    --rank-accent: #76d69b;
    --rank-glow: rgba(118,214,155,.17);
    border-color: rgba(118,214,155,.36);
    background: linear-gradient(145deg, rgba(22,71,54,.91), rgba(16,35,34,.96));
}
.rank-card.rank-card--lv5 {
    --rank-accent: #c69af0;
    --rank-glow: rgba(198,154,240,.19);
    border-color: rgba(198,154,240,.40);
    background: linear-gradient(145deg, rgba(67,38,91,.92), rgba(28,25,48,.97));
}
.rank-card.rank-card--lv6 {
    --rank-accent: #e0b766;
    --rank-glow: rgba(224,183,102,.24);
    border-color: rgba(224,183,102,.48);
    background:
        radial-gradient(circle at 82% 15%, rgba(224,183,102,.17), transparent 34%),
        linear-gradient(145deg, rgba(72,53,28,.94), rgba(31,28,36,.98));
}
.rank-card.rank-card--lv7 {
    --rank-accent: #ef91bd;
    --rank-glow: rgba(239,145,189,.28);
    border-color: rgba(239,145,189,.52);
    background:
        radial-gradient(circle at 82% 12%, rgba(239,145,189,.21), transparent 35%),
        linear-gradient(145deg, rgba(82,34,67,.95), rgba(37,22,49,.98));
}
.rank-card.rank-card--lv8 {
    --rank-accent: #a98cff;
    --rank-glow: rgba(169,140,255,.32);
    border-color: rgba(169,140,255,.58);
    background:
        radial-gradient(circle at 84% 12%, rgba(169,140,255,.27), transparent 36%),
        radial-gradient(circle at 15% 90%, rgba(74,200,210,.11), transparent 34%),
        linear-gradient(145deg, rgba(55,39,104,.96), rgba(24,24,53,.99));
}
.rank-card.rank-card--lv9 {
    --rank-accent: #f4d77b;
    --rank-glow: rgba(244,215,123,.38);
    border-color: rgba(244,215,123,.68);
    background:
        radial-gradient(circle at 85% 12%, rgba(255,226,130,.30), transparent 35%),
        radial-gradient(circle at 12% 88%, rgba(113,211,255,.14), transparent 34%),
        linear-gradient(145deg, rgba(77,58,23,.97), rgba(47,27,58,.98) 52%, rgba(18,31,49,.99));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 24px rgba(244,215,123,.14),
        0 14px 36px rgba(0,0,0,.22);
}
.rank-card .profile-rank-overall {
    color: var(--rank-accent);
    text-shadow: 0 0 18px var(--rank-glow);
}

.profile-rank-position {
    font: inherit;
    color: inherit;
}
.profile-rank-total {
    margin-left: 7px;
    color: color-mix(in srgb, var(--rank-accent) 70%, #8f989d 30%);
    font-size: .48em;
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: none;
    vertical-align: .18em;
}
.rank-card .rank-trophy {
    color: var(--rank-accent);
    opacity: .65;
    filter: drop-shadow(0 0 8px var(--rank-glow));
}
.rank-card .rank-metric {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.045);
}

.rank-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.section-eyebrow {
    color: #9fa7aa;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.rank-name {
    margin-top: 4px;
    color: var(--accent);
    font-size: clamp(25px, 2.6vw, 34px);
    font-weight: 850;
    line-height: 1.05;
}

.rank-trophy {
    color: rgba(219, 229, 232, .38);
    font-size: 24px;
}

.rank-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 13px;
}

.rank-metric {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
}

.rank-metric-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #919a9e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rank-metric-value {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #d8dde1;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-metric-value small {
    color: #8f989d;
    font-size: 9px;
}

/* 下半部分：左侧记录，右侧资料卡。 */
.player-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    margin-top: 12px;
    align-items: start;
}

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

.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;
    text-transform: uppercase;
}

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

.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;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.record-tab:hover {
    border-color: rgba(66, 198, 200, .38);
    color: #edf3f4;
}

.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;
}

.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-strip table {
    min-width: 650px;
    margin: 0 auto;
}

.weapon-option-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
}
.weapon-option-button.active_weap {
    color: #eef7f7;
}
.weapon-option-button:focus-visible,
.record-tab:focus-visible {
    outline: 1px solid rgba(85, 200, 201, .7);
    outline-offset: 2px;
}

.player-page #mytable {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.player-page #mytable thead,
.player-page #mytable th {
    background: rgb(121 121 121 / 12%) !important;
}

.player-page #mytable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.player-page #mytable th {
    padding: 9px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    color: #8e949d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .03em;
}

.player-page #mytable th.is-sortable {
    padding: 0 !important;
}
.records-sort-button {
    display: inline-flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
}
.records-sort-button:hover {
    color: #e7f2f2;
    background: rgba(85, 200, 201, .055);
}
.records-sort-indicator {
    min-width: 9px;
    color: #606a76;
    font-size: 9px;
    line-height: 1;
}
.records-sort-button.is-active .records-sort-indicator {
    color: var(--accent);
}
.player-page #mytable th.records-checkpoint-header,
.player-page #mytable td.records-checkpoint-cell {
    text-align: center !important;
}
.player-page #mytable th.records-checkpoint-header .records-sort-button {
    justify-content: center;
}

.player-page #mytable td {
    padding: 8px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
    border-color: rgba(255, 255, 255, .065) !important;
    color: #b7bdc5;
    font-size: 14px;
    line-height: 1.5;
}

.player-page #mytable tbody tr:hover {
    background: rgba(66, 198, 200, .045) !important;
}


.records-table-shell {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
/*    background: linear-gradient(135deg, rgba(0, 22, 38, 0.64), rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.36));*/
}

.records-error {
    min-height: 530px;
    padding: 22px;
}

.records-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 530px;
    padding: 18px;
/*    background: rgba(6, 8, 12, .72);*/
    backdrop-filter: blur(2px);
}

.records-loading-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

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

.records-skeleton {
    display: none;
}

.records-skeleton span {
    display: block;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 7px;
    background: rgba(255, 255, 255, .032);
    animation: records-pulse 1.25s ease-in-out infinite alternate;
}

.records-skeleton span:nth-child(2) { animation-delay: .08s; }
.records-skeleton span:nth-child(3) { animation-delay: .16s; }
.records-skeleton span:nth-child(4) { animation-delay: .24s; }
.records-skeleton span:nth-child(5) { animation-delay: .32s; }

@keyframes records-pulse {
    from { opacity: .42; }
    to { opacity: .9; }
}

.records-error {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #d3a1a8;
    font-size: 12px;
    text-align: center;
}

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

.records-error > i {
    font-size: 23px;
}

.records-error button {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(85, 200, 201, .35);
    border-radius: 7px;
    background: rgba(85, 200, 201, .10);
    color: #dff5f5;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.records-table-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    height: auto !important;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* 旧 table-data-txt / DataTables 样式可能会给 tbody 加固定高度和纵向滚动条。
   这里明确恢复原生 table 布局，去掉截图右侧那条内部绿色滚动条。 */
.player-page #mytable {
    display: table !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.player-page #mytable thead {
    display: table-header-group !important;
}

.player-page #mytable tbody {
    display: table-row-group !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.player-page #mytable tr {
    display: table-row !important;
}

.player-page #mytable th,
.player-page #mytable td {
    display: table-cell !important;
}


.record-quality {
    min-width: 150px;
    position: relative;
    vertical-align: middle;
}
.record-quality-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    white-space: nowrap;
}
.record-quality-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}
.record-quality-time {
    color: #c7cdd5;
    font-size: 12px;
    line-height: 1.25;
}
.record-quality-diff {
    color: #8c95a0;
    font-size: 11px;
    line-height: 1.25;
}
/* 时间差：+ 代表比参考慢，使用红色；- 代表比参考快，使用绿色。 */
.record-quality--faster .record-quality-diff {
    color: #58d68d;
}
.record-quality--slower .record-quality-diff {
    color: #ef6f6c;
}
.record-quality-bar {
    width: 100%;
    max-width: 116px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}
.record-quality-fill {
    height: 100%;
    border-radius: inherit;
    transition: width .16s ease;
}
/* 未满的进度条只使用单色；只有跑过参考记录、100% 满条时才使用彩色渐变。 */
.record-quality--slower .record-quality-fill {
    background: #d88a5f;
}
.record-quality--faster .record-quality-fill {
    background: linear-gradient(90deg,
        #df7168 0%,
        #d98a59 28%,
        #c7a84f 55%,
        #82b85f 76%,
        #4fc786 100%
    );
}
.record-quality--faster .record-quality-bar {
    background: rgba(255,255,255,.10);
}
.record-no-reference {
    color: #858d97;
    white-space: nowrap;
}

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

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

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

.records-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 button:hover {
    border-color: rgba(85, 200, 201, .50);
}

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

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

.records-page-buttons button {
    min-width: 28px;
    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;
}

.records-page-buttons button:hover:not(:disabled) {
    border-color: rgba(85, 200, 201, .38);
    color: #eef5f5;
}

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

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

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

@media (max-width: 760px) {
    .records-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .records-search {
        width: 100%;
    }

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

.run-checkpoints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.run-checkpoints span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dashboard-sidebar {
    display: grid;
    gap: 12px;
    align-self: start;
}

/* 左侧记录面板与右侧侧栏统一顶部基线，避免预加载阶段出现几像素错位。 */
.player-dashboard > .records-panel,
.player-dashboard > .dashboard-sidebar {
    margin-top: 0;
}

.side-card {
    padding: 14px;
}

.side-card-title {
    margin: 0 0 11px;
    color: #9ba1aa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.side-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}
.side-card-title-row .side-card-title {
    margin: 0;
}
.map-top10-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid rgba(85,200,201,.24);
    border-radius: 7px;
    background: rgba(85,200,201,.055);
    color: #8fc8ca;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.map-top10-toggle:hover:not(:disabled),
.map-top10-toggle.is-open {
    border-color: rgba(85,200,201,.46);
    background: rgba(85,200,201,.12);
    color: #d9f4f4;
}
.map-top10-toggle:disabled {
    opacity: .42;
    cursor: default;
}
.map-top10-toggle i {
    font-size: 9px;
    transition: transform .16s ease;
}
.map-top10-toggle.is-open i {
    transform: rotate(180deg);
}
.map-ranking-list {
    display: grid;
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.075);
}
.map-ranking-list[hidden] {
    display: none !important;
}
.map-ranking-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: inherit;
    text-decoration: none;
    transition: border-color .14s ease, background .14s ease;
}
.map-ranking-row:hover {
    border-color: rgba(85,200,201,.26);
    background: rgba(85,200,201,.055);
}
.map-ranking-number {
    color: #6f7782;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.map-ranking-row:nth-child(1) .map-ranking-number { color: #9fb2c7; }
.map-ranking-row:nth-child(2) .map-ranking-number { color: #c5b47a; }
.map-ranking-copy {
    min-width: 0;
}
.map-ranking-name {
    display: block;
    overflow: hidden;
    color: #d7dce3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-ranking-meta {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #707986;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-ranking-value {
    color: #aab3bf;
    font-size: 9px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.map-ranking-empty {
    padding: 7px 4px 2px;
    color: #6f7782;
    font-size: 9px;
    text-align: center;
}

.best-map-name {
    display: block;
    overflow: hidden;
    color: #e6e9ee;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.best-map-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.best-map-link:hover .best-map-name {
    color: #fff;
}

.difficulty-easy { color: #86efac; border-color: rgba(134,239,172,.35); }
.difficulty-easy-average { color: #a7f3d0; border-color: rgba(167,243,208,.35); }
.difficulty-average { color: #fde68a; border-color: rgba(253,230,138,.35); }
.difficulty-average-hard { color: #fdba74; border-color: rgba(253,186,116,.38); }
.difficulty-hard { color: #fb923c; border-color: rgba(251,146,60,.42); }
.difficulty-hard-extreme { color: #fda4af; border-color: rgba(253,164,175,.42); }
.difficulty-extreme { color: #fb7185; border-color: rgba(251,113,133,.45); }
.difficulty-extreme-death { color: #f0abfc; border-color: rgba(240,171,252,.45); }
.difficulty-death { color: #c4b5fd; border-color: rgba(196,181,253,.48); }
.difficulty-death-god { color: #f4ddff; border-color: rgba(216,180,254,.60); background: rgba(126,34,206,.16); }
.difficulty-unknown { color: #9aa1ab; }

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

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.summary-label {
    color: #777e88;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-value {
    color: #d6dbe2;
    font-size: 14px;
    font-weight: 850;
    text-align: right;
}

.steam-card-copy {
    color: #858d98;
    font-size: 11px;
    line-height: 1.5;
}

.steam-state {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #929aa5;
    font-size: 11px;
}

.steam-state[data-state="loading"] { color: #e4c66c; }
.steam-state[data-state="online"] { color: #60d498; }
.steam-state[data-state="offline"],
.steam-state[data-state="error"] { color: #e28591; }

.steam-load-button {
    display: inline-flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
    border: 1px solid rgba(66, 198, 200, .38);
    border-radius: 9px;
    background: rgba(31, 123, 125, .20);
    color: #e0f4f4;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.steam-load-button:hover {
    background: rgba(38, 147, 149, .29);
}

.steam-load-button[aria-busy="true"] {
    pointer-events: none;
    opacity: .65;
}

.steam-dialog {
    width: min(680px, calc(100% - 24px));
    max-height: min(82vh, 740px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: #10131a;
    color: #eef1f5;
    box-shadow: 0 28px 90px rgba(0,0,0,.62);
}

.steam-dialog::backdrop {
    background: rgba(2, 4, 8, .76);
    backdrop-filter: blur(7px);
}

.steam-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.steam-dialog-title {
    margin: 0;
    font-size: 15px;
}

.steam-dialog-close {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: #dce1e8;
    cursor: pointer;
}

.steam-dialog-body {
    max-height: calc(82vh - 60px);
    overflow-y: auto;
    padding: 16px;
}

.steam-loading,
.steam-error {
    display: grid;
    min-height: 170px;
    place-items: center;
    color: #9ca5b1;
    text-align: center;
}

.steam-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: player-spin .8s linear infinite;
}

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

.steam-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.steam-info-item {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: rgba(255,255,255,.03);
}

.steam-info-key {
    display: block;
    margin-bottom: 5px;
    color: #7f8895;
    font-size: 9px;
    font-weight: 800;
}

.steam-info-value {
    color: #dce1e8;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.steam-info-value a { color: #9fc2ee; }

@media (max-width: 1040px) {
    .profile-overview {
        grid-template-columns: 1fr;
    }
    .vip-flash-badge {
        min-height: 58px;
        align-self: auto;
    }
    .player-dashboard {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .player-page {
        width: min(100% - 18px, 1280px);
        padding-top: 16px;
    }
    .profile-identity {
        grid-template-columns: 108px minmax(0, 1fr);
    }
    .profile-avatar {
        width: 108px;
        height: 108px;
    }
    .rank-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .records-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .record-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .profile-overview,
    .records-panel,
    .side-card {
        padding: 12px;
    }
    .profile-identity {
        grid-template-columns: 1fr;
    }
    .profile-avatar {
        width: 94px;
        height: 94px;
    }
    .profile-name {
        font-size: 25px;
    }
    .rank-metrics {
        grid-template-columns: 1fr 1fr;
    }
    .steam-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-page *,
    .player-page *::before,
    .player-page *::after {
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.profile-overview {
    position: relative;
    min-height: 180px;
}
.profile-loading-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 72px minmax(420px, .92fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

/* 预渲染结构与真实 profile-identity 保持同一列宽/头像尺寸，避免数据出来后整块跳动。 */
.profile-loading-identity {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    align-items: start;
    padding: 2px 0;
}

.async-skeleton-avatar {
    display: block;
    width: 142px;
    height: 142px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}

.profile-loading-copy {
    display: grid;
    min-width: 0;
    gap: 9px;
    padding-top: 4px;
}

.async-skeleton-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}

.profile-loading-copy .async-skeleton-line.is-title {
    width: min(72%, 270px);
    height: 31px;
    margin-bottom: 4px;
    border-radius: 8px;
}
.profile-loading-copy .async-skeleton-line.is-status { width: min(76%, 300px); }
.profile-loading-copy .async-skeleton-line.is-game-time { width: min(66%, 260px); }
.profile-loading-copy .async-skeleton-line.is-region { width: min(58%, 220px); }

.profile-load-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #8f98a5;
    font-size: 11px;
}

/* 中间 VIP 闪电占位与真实 72px VIP 列完全一致。 */
.profile-loading-vip {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.async-skeleton-flash {
    display: block;
    width: 42px;
    height: 58px;
    opacity: .72;
    background: rgba(255,255,255,.075);
    clip-path: polygon(56% 0, 18% 55%, 44% 55%, 34% 100%, 82% 40%, 56% 40%);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}

/* 排名预渲染直接模拟真实 rank-card，不再用一张泛用 skeleton 卡代替。 */
.profile-loading-rank {
    min-width: 0;
    min-height: 150px;
    padding: 13px;
    border: 1px solid rgba(155,164,176,.24);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(35,40,49,.72), rgba(17,21,28,.78));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 12px 30px rgba(0,0,0,.12);
}

.profile-loading-rank-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-loading-rank-copy {
    display: grid;
    width: min(72%, 270px);
    gap: 8px;
}

.profile-loading-rank .async-skeleton-line.is-eyebrow {
    width: 72px;
    height: 9px;
}

.profile-loading-rank .async-skeleton-line.is-rank {
    width: 150px;
    height: 37px;
    border-radius: 8px;
}

.async-skeleton-trophy {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}

.profile-loading-rank-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 13px;
}

.async-skeleton-metric {
    display: block;
    min-width: 0;
    height: 51px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}


/* 显式处理 hidden：
   profile-loading-grid / profile-error / profile-identity 等自身定义了 display:grid/flex，
   必须强制 hidden 时 display:none，避免“骨架 + 错误提示 + 已加载资料”同时出现。 */
.profile-loading-grid[hidden],
.profile-error[hidden],
.profile-identity[hidden],
.vip-flash-badge[hidden],
.rank-card[hidden] {
    display: none !important;
}

.profile-error {
    grid-column: 1 / -1;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #d3a1a8;
    text-align: center;
}
.profile-presence.is-online { background: #43d28c; }
.profile-presence.is-offline { background: #626975; }
.profile-rank-overall {
    margin-top: 5px;
    color: var(--accent);
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}
.rank-metrics.rank-metrics--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rank-metrics.rank-metrics--three .rank-metric-value {
    font-size: 18px;
}
.profile-checkin-slot {
    display: inline-flex;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
}
.profile-checkin-slot:empty {
    display: none;
}
/* 右侧三张地图卡片的摘要改为普通文字，不再使用圆角标签。 */
.hardest-map-meta {
    display: block;
    min-width: 0;
    width: 100%;
    margin-top: 9px;
    color: #8f97a2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hardest-meta-tag {
    display: inline;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font: inherit;
    line-height: inherit;
    white-space: normal;
}

.hardest-meta-tag + .hardest-meta-tag::before {
    content: " · ";
    color: #69717c;
    font-weight: 700;
}

.hardest-meta-value {
    display: inline;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* 只保留文字颜色，不再给类型、模式、时间单独画胶囊背景。 */
.hardest-type-tag {
    color: #a7cfd0;
}

.run-mode-tag {
    color: #f1d59b;
}

.run-time-tag {
    color: #c9d1dc;
    font-variant-numeric: tabular-nums;
}
.steam-summary {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
}
.steam-summary-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}
.steam-summary-label {
    flex: 0 0 auto;
    color: #777e88;
    font-size: 10px;
    font-weight: 800;
}
.steam-summary-value {
    min-width: 0;
    overflow: hidden;
    color: #c8ced7;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-status-value {
    text-align: right;
}

.steam-status-value[data-state="online"] {
    color: #60d498;
}

.steam-status-value[data-state="offline"] {
    color: #c8ced7;
}

.steam-status-value[data-state="loading"] {
    color: #e4c66c;
}

.steam-status-value[data-state="error"] {
    color: #c8ced7;
}
.steam-id-button {
    max-width: 180px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c8ced7;
    font: inherit;
    font-family: monospace;
    cursor: pointer;
    text-align: right;
}
.steam-id-button:hover {
    color: #e8f7f7;
}
.steam-id-button.is-disabled {
    opacity: .45;
    cursor: default;
}
.steam-id-button.is-copied {
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(110,231,183,.28);
}
.steam-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9fc2ee;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.steam-home-link:hover { color: #c9ddf5; }
/* 右侧地图卡片预加载高度尽量贴近真实卡片：
   标题行 + 两条内容骨架的总高度与数据渲染后基本一致，
   避免加载完成时右侧三张卡片整体突然向上收缩。 */
.side-card-loading {
    min-height: 46px;
    padding-top: 1px;
}

.side-card-loading .async-skeleton-line {
    height: 10px;
    margin-bottom: 8px;
}

.side-card-loading .async-skeleton-line:last-child {
    margin-bottom: 0;
}
.side-card-content[hidden], .side-card-loading[hidden] { display:none !important; }
.record-tab-count.is-loading {
    min-width: 14px;
    height: 9px;
    border-radius: 999px;
    color: transparent;
    background: rgba(255,255,255,.10);
    animation: records-pulse 1.1s ease-in-out infinite alternate;
}
.profile-action[hidden], .btn-send-message[hidden] { display:none !important; }
.profile-action:disabled, .steam-load-button:disabled { opacity:.45; cursor:not-allowed; }

@media (max-width: 1040px) {
    .profile-loading-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .rank-metrics.rank-metrics--three { grid-template-columns: 1fr; }
    .async-skeleton-avatar { flex-basis: 88px; width:88px; height:88px; }
}

/* ===== v6：玩家记录加载状态只保留转圈 ===== */
.records-loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

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

.records-loading .records-spinner {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid rgba(255,255,255,.14);
    border-top-color: var(--accent);
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.records-loading-head,
.records-skeleton {
    display: none !important;
}

/* ===== v6：WR / KZCN 差异列排版 ===== */
.record-quality-main {
    width: 126px;
    gap: 4px;
}

.record-quality-line {
    width: 100%;
    gap: 5px;
}

.record-quality-time {
    font-size: 12px; /* 参考时间保持原大小 */
}

.record-quality-diff {
    font-size: 9.5px; /* 只缩小差异时间 */
    line-height: 1.2;
}

.record-quality-bar {
    width: 126px;
    max-width: 126px;
    height: 5px;
    margin: 0;
}

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

.records-pagination-info {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

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

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


/* ===== v7：WR / KZCN 时间与进度条紧凑对齐 ===== */
.record-quality-main {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    gap: 4px;
}

.record-quality-line {
    width: max-content;
    gap: 3px;
}

.record-quality-time,
.record-quality-diff {
    font-size: 10px;
    line-height: 1.2;
}

.record-quality-bar {
    width: 100%;
    max-width: none;
    height: 4px;
    margin: 0;
}


/* ===== v8：WR/KZCN 文字完全同字号，进度条严格跟随文字宽度 ===== */
.record-quality-main {
    display: inline-grid !important;
    grid-template-columns: max-content;
    width: auto !important;
    max-width: none !important;
    gap: 4px !important;
    align-items: start;
}

.record-quality-line {
    display: flex !important;
    grid-column: 1;
    width: max-content !important;
    gap: 3px !important;
    align-items: baseline;
}

.record-quality-time,
.record-quality-diff {
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.record-quality-bar {
    grid-column: 1;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 4px !important;
    margin: 0 !important;
    align-self: stretch;
}


.rank-top123 {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-left:12px;
    font-size:13px;
    vertical-align:middle;
}
.rank-medal {
    white-space:nowrap;
    font-weight:600;
}


.top123-card {
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.12);
    display:flex;
    align-items:center;
    gap:20px;
}

.top123-title {
    font-size:12px;
    color:#9fa7aa;
    font-weight:800;
    white-space:nowrap;
}

.top123-row {
    display:flex;
    align-items:center;
    gap:12px;
}

.top123-type {
    font-size:13px;
    font-weight:800;
    width:35px;
}

.rank-medal i {
    font-size:13px;
}

.rank-medal b {
    font-weight:800;
}

.rank-top123-mini {
    display:flex;
    flex-direction:column;
    gap:5px;
    align-items:flex-end;
}
.rank-top123-mini-title {
    font-size:10px;
    color:#9fa7aa;
    font-weight:800;
}
.rank-top123-mini-row {
    display:flex;
    align-items:center;
    gap:8px;
}
.rank-top123-type {
    font-size:11px;
    color:#9fa7aa;
    font-weight:800;
    margin-right:2px;
}
.rank-medal {
    display:inline-flex;
    align-items:center;
    gap:3px;
}


/* TOP123 right mini card */
.rank-top123-mini{
    min-width:210px;
    padding-left:18px;
    border-left:1px solid rgba(255,255,255,.12);
    gap:7px;
    align-items:flex-start;
}
.rank-top123-mini-title{
    width:100%;
    text-align:left;
    font-size:11px;
}
.rank-top123-mini-row{
    width:100%;
    justify-content:flex-start;
    gap:12px;
}
.rank-top123-type{
    width:32px;
    font-size:11px;
    color:#9fa7aa;
    margin-right:2px;
}
.rank-medal{
    font-size:13px;
}
.rank-medal i{
    font-size:12px;
}
.rank-medal.gold i{
    color:#ffd700 !important;
}
.rank-medal.silver i{
    color:#cfd3d6 !important;
}
.rank-medal.bronze i{
    color:#cd7f32 !important;
}
.rank-medal b{
    color:#e8e8e8;
    margin-left:2px;
}
