body.page-template-page-ranking {
    min-height: max(884px, 100dvh);
    margin: 0;
    background: #faf9fe;
    color: #1a1b1f;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.page-template-page-ranking .pg-topbar {
    position: sticky;
    z-index: 50;
}

body.page-template-page-ranking .pg-app-shell {
    width: min(640px, 100%);
    padding: 0 0 124px;
    background: #faf9fe;
}

body.page-template-page-ranking .pg-list-desktop-nav {
    display: none;
}

.pg-ranking-exact,
.pg-ranking-exact * {
    box-sizing: border-box;
}

.pg-ranking-exact {
    min-height: max(884px, 100dvh);
    padding-top: 0;
    padding-bottom: 96px;
    background: #faf9fe;
}

.pg-ranking-exact-tabs {
    position: sticky;
    top: 104px;
    z-index: 40;
    padding: 12px 0;
    background: rgba(250, 249, 254, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pg-ranking-exact-tabs__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 9999px;
    background: #f4f3f8;
}

.pg-ranking-exact-tab {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 34px;
    padding: 8px 24px;
    border: 0;
    border-radius: 9999px;
    color: #414755;
    background: transparent;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pg-ranking-exact-tab:active {
    transform: scale(0.95);
}

.pg-ranking-exact-tab.is-active {
    color: #ffffff;
    background: #0058bc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    font-weight: 700;
}

.pg-ranking-exact-list-wrap {
    margin-top: 16px;
    padding: 0;
}

.pg-ranking-exact-list {
    display: grid;
    gap: 16px;
}

.fade-in {
    animation: pgRankingExactFade 300ms ease-in-out;
}

@keyframes pgRankingExactFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg-ranking-exact-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 88px;
    padding: 12px 8px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid rgba(193, 198, 215, 0.1);
    background: transparent;
    transition: background-color 200ms ease;
}

.pg-ranking-exact-item:hover {
    background: #f4f3f8;
}

.pg-ranking-exact-item--top {
    min-height: 88px;
    padding: 12px 8px;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.pg-ranking-exact-item--amber {
    border-color: #fde68a;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
}

.pg-ranking-exact-item--slate {
    border-color: #e2e8f0;
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
}

.pg-ranking-exact-item--orange {
    border-color: #fed7aa;
    background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
}

.pg-ranking-exact-rank,
.pg-ranking-exact-number {
    display: flex;
    width: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
}

.pg-ranking-exact-rank .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

.pg-ranking-exact-rank--amber {
    color: #f59e0b;
}

.pg-ranking-exact-rank--slate {
    color: #94a3b8;
}

.pg-ranking-exact-rank--orange {
    color: #fb923c;
}

.pg-ranking-exact-number {
    color: #717786;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
}

.pg-ranking-exact-cover {
    position: relative;
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    overflow: visible;
    border-radius: 12px;
    background: #e9e7ed;
}

a.pg-ranking-exact-cover {
    color: inherit;
    text-decoration: none;
}

.pg-ranking-exact-cover img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.pg-ranking-exact-rating {
    position: absolute;
    left: 4px;
    bottom: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: calc(100% - 8px);
    min-height: 14px;
    padding: 2px 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.44);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

body.page-template-page-ranking .pg-ranking-exact .pg-ranking-exact-rating .material-symbols-outlined {
    flex: 0 0 auto;
    color: #ff9f1a;
    font-size: 9px !important;
    line-height: 1 !important;
}

.pg-ranking-exact-copy {
    display: grid;
    min-height: 64px;
    flex: 1 1 auto;
    grid-template-rows: 20px 14px 16px;
    align-content: center;
    row-gap: 2px;
    min-width: 0;
    margin-left: 16px;
}

.pg-ranking-exact-copy h3 {
    height: 20px;
    margin: 0;
    overflow: hidden;
    color: #1a1b1f;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-ranking-exact-copy h3 a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-ranking-exact-meta {
    display: flex;
    height: 14px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
    line-height: 14px;
}

.pg-ranking-exact-meta p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #414755;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-ranking-exact-meta p:last-child {
    flex: 1 1 auto;
}

.pg-ranking-exact-meta span {
    flex: 0 0 auto;
    color: #717786;
    line-height: 14px;
}

.pg-ranking-exact-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    color: #717786;
    font-size: 11px;
    line-height: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-ranking-exact-metric .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

.pg-ranking-exact-view-metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 16px;
    margin-top: 0;
    line-height: 16px;
}

.pg-ranking-exact-view-metric .material-symbols-outlined {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 16px;
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 20;
}

.pg-ranking-exact-view-metric span:not(.material-symbols-outlined) {
    display: inline-flex;
    height: 16px;
    align-items: center;
    line-height: 16px;
}

.pg-ranking-exact-star {
    color: #f59e0b;
}

.pg-ranking-exact-add {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border: 0;
    border-radius: 9999px;
    color: #ffffff;
    background: #0058bc;
    cursor: pointer;
    transition: transform 160ms ease;
}

.pg-ranking-exact-add:active {
    transform: scale(0.95);
}

.pg-ranking-exact-add.is-unlocked,
.pg-ranking-exact-add.is-in-cart {
    opacity: 0.55;
    background: #0058bc;
    box-shadow: 0 5px 12px rgba(0, 88, 188, 0.12);
    filter: saturate(0.75);
}

.pg-ranking-exact-add .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.pg-ranking-exact-more {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.pg-ranking-exact-more__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border: 0;
    border-radius: 9999px;
    color: #0058bc;
    background: rgba(0, 88, 188, 0.1);
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.pg-ranking-exact-more__button:active {
    transform: scale(0.95);
}

.pg-ranking-exact-more__button.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.pg-ranking-exact-more__button.is-finished {
    opacity: 0.5;
    pointer-events: none;
}

.pg-ranking-exact-more__button[hidden] {
    display: none;
}

.pg-ranking-exact-spin {
    font-size: 18px;
    animation: pgRankingExactSpin 1s linear infinite;
}

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

.pg-ranking-exact-cart {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 112px;
    z-index: 30;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    color: #ffffff;
    background: #0058bc;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.pg-ranking-exact-cart:hover {
    background: #6664e4;
}

.pg-ranking-exact-cart:active {
    transform: scale(0.9);
}

.pg-ranking-exact-cart .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 360px) {
    .pg-ranking-exact-tab {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 12px;
    }

}

@media (max-width: 640px) {
    body.page-template-page-ranking .pg-app-shell {
        padding-top: 0;
    }

    .pg-ranking-exact {
        min-height: calc(max(884px, 100dvh) - 62px);
    }

    .pg-ranking-exact-tabs {
        top: var(--pg-mobile-header-height, 62px);
        padding-top: 12px;
    }
}

@media (max-width: 899px) {
    body.page-template-page-ranking .pg-topbar {
        top: 0;
    }

    body.page-template-page-ranking .pg-ranking-exact-tabs {
        position: fixed;
        top: calc(var(--pg-mobile-header-height, 62px) + var(--pg-wp-admin-bar-height, 0px));
        right: var(--pg-mobile-page-gutter, 18px);
        left: var(--pg-mobile-page-gutter, 18px);
        z-index: 880;
        padding: 10px 0 12px;
        background: rgba(250, 249, 254, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.page-template-page-ranking .pg-ranking-exact-list-wrap {
        margin-top: 84px;
    }

    .pg-ranking-exact > .pg-list-desktop-nav {
        display: none !important;
    }
}

@media (min-width: 900px) {
    body.page-template-page-ranking .pg-topbar {
        display: none;
    }

    body.page-template-page-ranking .pg-app-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        background: #faf9fe;
    }

    body.page-template-page-ranking .pg-list-desktop-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 50;
        display: block;
        color: #111827;
        border-bottom: 1px solid rgba(226, 232, 240, 0.72);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
        backdrop-filter: saturate(170%) blur(22px);
        -webkit-backdrop-filter: saturate(170%) blur(22px);
    }

    body.admin-bar.page-template-page-ranking .pg-list-desktop-nav {
        top: var(--pg-wp-admin-bar-height, 32px);
    }

    body.page-template-page-ranking .pg-list-desktop-nav__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: min(1472px, 100%);
        height: 76px;
        margin: 0 auto;
        padding: 0 40px;
        box-sizing: border-box;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__brand {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-self: start;
        overflow: visible;
        color: inherit;
        text-decoration: none;
        isolation: isolate;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__brand img {
        display: block;
        width: 220px;
        height: 50px;
        object-fit: contain;
        object-position: left center;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__brand .site-logo--light {
        display: none;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__brand .site-logo--dark {
        display: block;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 38px;
        font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", sans-serif;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__links a {
        color: inherit;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 500;
        letter-spacing: 0;
        text-decoration: none;
        opacity: 0.78;
        -webkit-font-smoothing: antialiased;
        text-rendering: geometricPrecision;
        transition: color 180ms ease, opacity 180ms ease;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__links a:hover {
        color: #0266ff;
        opacity: 1;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__actions {
        display: flex;
        justify-self: end;
        align-items: center;
        gap: 16px;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__actions button {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        color: inherit;
        background: transparent;
        cursor: pointer;
        transition: background-color 180ms ease, color 180ms ease;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__actions .material-symbols-outlined {
        font-size: 22px;
        font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
    }

    body.page-template-page-ranking .pg-list-desktop-nav__actions button:hover {
        color: #0266ff;
        background: rgba(2, 102, 255, 0.08);
    }

    body.page-template-page-ranking .pg-list-desktop-nav__actions i {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 8px;
        height: 8px;
        border: 1px solid #000000;
        border-radius: 999px;
        background: #0266ff;
    }

    body.page-template-page-ranking .pg-ranking-exact {
        min-height: 100vh;
        padding: 116px 0 96px;
    }

    body.page-template-page-ranking .pg-ranking-exact-tabs {
        position: static;
        width: min(1472px, 100%);
        margin: 0 auto 24px;
        padding: 0 40px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.page-template-page-ranking .pg-ranking-exact-tabs__inner {
        max-width: 420px;
        margin-left: auto;
    }

    body.page-template-page-ranking .pg-ranking-exact-list-wrap {
        width: min(1472px, 100%);
        margin: 0 auto;
        padding: 0 40px;
    }
}
