.pmmr-ranking {
    margin: 34px 0;
    padding: 0;
}

.pmmr-ranking-head {
    margin-bottom: 18px;
}

.pmmr-ranking-head h2 {
    margin: 0 0 8px;
    color: var(--pm-text-color, #111827);
    font-family: var(--pm-font-headings, system-ui, sans-serif);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.pmmr-ranking-head p {
    max-width: 760px;
    margin: 0;
    color: var(--pm-text-muted, #64748b);
    font-size: 16px;
    line-height: 1.65;
}

.pmmr-ranking-list {
    display: grid;
    gap: 12px;
}

.pmmr-card {
    position: relative;
    display: grid;
    grid-template-columns: 166px minmax(0, 1fr) 158px;
    gap: 18px;
    align-items: start;
    padding: 10px 14px 12px 10px;
    border: 1px solid var(--pm-card-border, #e2e8f0);
    border-radius: 8px;
    background: var(--pm-card-bg, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.pmmr-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pm-accent-gradient, linear-gradient(135deg, #ff3366, #ff7a45));
    color: #ffffff;
    font-family: var(--pm-font-headings, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 900;
    line-height: 30px;
    text-align: center;
}

.pmmr-media {
    display: grid;
    justify-items: center;
    gap: 7px;
    align-self: start;
}

.pmmr-avatar-link {
    display: block;
    width: 156px;
    height: 156px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.pmmr-avatar-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmmr-avatar-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #ffffff;
    background: #111827;
    font-size: 42px;
    font-weight: 900;
}

.pmmr-card-body {
    min-width: 0;
    align-self: start;
    padding-top: 8px;
}

.pmmr-title-row {
    display: block;
    margin-bottom: 0;
}

.pmmr-title-row .pmmr-rating {
    display: none;
}

.pmmr-title-row h3,
.pmmr-card-title {
    margin: 0;
    color: var(--pm-text-color, #111827);
    font-family: var(--pm-font-headings, system-ui, sans-serif);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.pmmr-title-row h3 a,
.pmmr-card-title a {
    color: inherit;
    text-decoration: none;
}

.pmmr-title-row h3 a:hover,
.pmmr-card-title a:hover {
    color: var(--pm-accent-color, #e82956);
}

.pmmr-tax-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #5b6b82;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.35;
}

.pmmr-tax-separator {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
}

.pmmr-rating {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.pmmr-rating-under-photo {
    justify-self: center;
    padding: 6px 10px;
    font-size: 13px;
}

.pmmr-rating::before {
    content: "\2605";
    color: #f59e0b;
}

.pmmr-description {
    margin: 16px 0 0;
    color: var(--pm-text-muted, #475569);
    font-size: 15px;
    line-height: 1.55;
}

.pmmr-description a {
    color: var(--pm-accent-color, #e82956);
    font-weight: 900;
    text-decoration: none;
}

.pmmr-description a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pmmr-facts {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.pmmr-facts div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--pm-card-border, #e2e8f0);
    border-radius: 999px;
    background: #f8fafc;
}

.pmmr-facts dt,
.pmmr-facts dd {
    margin: 0;
}

.pmmr-facts dt {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pmmr-facts dd {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}

.pmmr-actions {
    display: grid;
    gap: 6px;
    justify-items: stretch;
    align-self: center;
}

.pmmr-online-btn,
.pmmr-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-family: var(--pm-font-headings, system-ui, sans-serif);
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.pmmr-online-btn {
    padding: 10px 16px;
    background: var(--pm-accent-gradient, linear-gradient(135deg, #ff3366, #ff7a45));
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(232, 41, 86, 0.25);
}

.pmmr-online-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.pmmr-online-btn-muted {
    background: #111827;
}

.pmmr-profile-link {
    min-height: 34px;
    color: var(--pm-accent-color, #e82956);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 820px) {
    .pmmr-card {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 14px;
    }

    .pmmr-avatar-link {
        width: 126px;
        height: 126px;
    }

    .pmmr-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pmmr-ranking-head h2 {
        font-size: 23px;
    }

    .pmmr-card {
        grid-template-columns: 110px minmax(0, 1fr);
        padding: 10px;
    }

    .pmmr-avatar-link {
        width: 104px;
        height: 104px;
    }

    .pmmr-title-row {
        display: block;
    }

    .pmmr-title-row h3,
    .pmmr-card-title {
        font-size: 18px;
    }

    .pmmr-tax-line {
        font-size: 12px;
    }

    .pmmr-description {
        font-size: 14px;
    }
}
