/*
 * AYW Power Rankings v5.0
 * Editorial Form Guide
 */

.ayw-pr,
.ayw-pr-mini {
    --ayw-pr-bg: #08090b;
    --ayw-pr-panel: #101114;
    --ayw-pr-panel-2: #141519;
    --ayw-pr-line: #292b31;
    --ayw-pr-line-soft: #1c1e23;
    --ayw-pr-red: var(--aywt-red, #df2334);
    --ayw-pr-white: #f5f5f6;
    --ayw-pr-muted: #9a9da5;
    --ayw-pr-dim: #70737c;
    --ayw-pr-up: #39c97a;
    --ayw-pr-down: #f05b65;
    --ayw-pr-new: #d6b35a;
    box-sizing: border-box;
    color: var(--ayw-pr-white);
    font-family: var(--aywt-body, Inter, Segoe UI, Roboto, sans-serif);
}

.ayw-pr *,
.ayw-pr *::before,
.ayw-pr *::after,
.ayw-pr-mini *,
.ayw-pr-mini *::before,
.ayw-pr-mini *::after {
    box-sizing: border-box;
}

.ayw-pr a,
.ayw-pr a:visited,
.ayw-pr-mini a,
.ayw-pr-mini a:visited {
    color: inherit;
    text-decoration: none !important;
}

.ayw-pr button,
.ayw-pr input,
.ayw-pr select,
.ayw-pr-mini button,
.ayw-pr-mini input,
.ayw-pr-mini select {
    font: inherit;
}

.ayw-pr button,
.ayw-pr select {
    cursor: pointer;
}

.ayw-pr :focus-visible,
.ayw-pr-mini :focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.ayw-pr [hidden] {
    display: none !important;
}

.ayw-pr {
    position: relative;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--ayw-pr-bg);
    border: 1px solid var(--ayw-pr-line);
    border-top: 3px solid var(--ayw-pr-red);
    isolation: isolate;
}

.ayw-pr::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(var(--aywt-red-rgb, 223, 35, 52), 0.09), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 520px);
}

/* Masthead */
.ayw-pr-masthead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(560px, 1fr);
    min-height: 206px;
    border-bottom: 1px solid var(--ayw-pr-line);
    background: rgba(12, 13, 16, 0.92);
}

.ayw-pr-masthead::after {
    content: "FORM";
    position: absolute;
    right: 39%;
    bottom: -22px;
    color: rgba(255, 255, 255, 0.025);
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 138px;
    font-stretch: condensed;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
}

.ayw-pr-masthead-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 32px 42px 34px;
    border-right: 1px solid var(--ayw-pr-line);
}

.ayw-pr-kicker,
.ayw-pr-section-kicker,
.ayw-pr-side-kicker {
    color: var(--ayw-pr-red);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ayw-pr-kicker::before,
.ayw-pr-section-kicker::before,
.ayw-pr-side-kicker::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 2px;
    margin: 0 7px 3px 0;
    background: currentColor;
}

.ayw-pr-title {
    margin: 8px 0 9px !important;
    color: var(--ayw-pr-white) !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif) !important;
    font-size: clamp(52px, 5vw, 84px) !important;
    font-weight: 900 !important;
    line-height: 0.92 !important;
    letter-spacing: -0.035em !important;
    text-transform: uppercase;
}

.ayw-pr-title span {
    color: var(--ayw-pr-red);
}

.ayw-pr-masthead-copy p {
    max-width: 680px;
    margin: 0 !important;
    color: #b2b4ba !important;
    font-size: 14px;
    line-height: 1.55;
}

.ayw-pr-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.ayw-pr-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 28px 21px;
    border-left: 1px solid var(--ayw-pr-line);
}

.ayw-pr-stat:first-child {
    border-left: 0;
}

.ayw-pr-stat strong {
    color: var(--ayw-pr-white);
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: clamp(27px, 2.5vw, 43px);
    font-weight: 900;
    line-height: 1;
}

.ayw-pr-stat:nth-child(3) strong,
.ayw-pr-stat:nth-child(4) strong {
    font-size: clamp(21px, 1.75vw, 31px);
    line-height: 1.02;
}

.ayw-pr-stat span {
    margin-top: 7px;
    color: #7e818a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* Shared section heading */
.ayw-pr-section-heading,
.ayw-pr-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ayw-pr-section-heading h2,
.ayw-pr-board-head h2 {
    margin: 5px 0 0 !important;
    color: var(--ayw-pr-white) !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif) !important;
    font-size: clamp(32px, 3.6vw, 54px) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.025em !important;
    text-transform: uppercase;
}

.ayw-pr-section-note,
.ayw-pr-board-status {
    color: #747780;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-align: right;
    text-transform: uppercase;
}

.ayw-pr-board-status span {
    color: var(--ayw-pr-white);
}

/* Leaders */
.ayw-pr-leaders {
    padding: 28px 28px 34px;
    border-bottom: 1px solid var(--ayw-pr-line);
}

.ayw-pr-leader-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.ayw-pr-leader {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 350px;
    overflow: hidden;
    border: 1px solid var(--ayw-pr-line);
    border-top: 3px solid var(--ayw-accent, var(--ayw-pr-red));
    background: #101114;
    transition: border-color 160ms ease, transform 160ms ease;
}

.ayw-pr-leader--1 {
    min-height: 386px;
    border-top-color: #d6b35a;
}

.ayw-pr-leader:hover {
    z-index: 2;
    border-color: #555860;
    border-top-color: var(--ayw-accent, var(--ayw-pr-red));
    transform: translateY(-3px);
}

.ayw-pr-leader--1:hover {
    border-top-color: #d6b35a;
}

.ayw-pr-leader-media,
.ayw-pr-leader-shade {
    position: absolute;
    inset: 0;
}

.ayw-pr-leader-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
    filter: saturate(0.92) contrast(1.04);
    transition: transform 260ms ease, filter 260ms ease;
}

.ayw-pr-leader:hover .ayw-pr-leader-media img {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.05);
}

.ayw-pr-leader-shade {
    background:
        linear-gradient(180deg, rgba(5, 6, 8, 0.04) 20%, rgba(5, 6, 8, 0.28) 53%, rgba(5, 6, 8, 0.97) 100%),
        linear-gradient(90deg, rgba(5, 6, 8, 0.32), transparent 60%);
}

.ayw-pr-leader-rank {
    position: absolute;
    right: 12px;
    bottom: -20px;
    color: rgba(255, 255, 255, 0.12);
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 138px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.ayw-pr-leader--1 .ayw-pr-leader-rank {
    color: rgba(214, 179, 90, 0.2);
    font-size: 172px;
}

.ayw-pr-leader-topline {
    position: absolute;
    z-index: 2;
    top: 17px;
    right: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ayw-pr-leader-position {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(5, 6, 8, 0.78);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ayw-pr-leader--1 .ayw-pr-leader-position {
    border-color: #d6b35a;
    background: #d6b35a;
    color: #090a0c;
}

.ayw-pr-leader-copy {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 25px 22px 22px;
}

.ayw-pr-promo {
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ayw-pr-leader-copy > strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: clamp(29px, 2.8vw, 47px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ayw-pr-leader--2 .ayw-pr-leader-copy > strong,
.ayw-pr-leader--3 .ayw-pr-leader-copy > strong {
    font-size: clamp(25px, 2.1vw, 34px);
}

.ayw-pr-leader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #d6d7da;
    font-size: 11px;
    font-weight: 800;
}

.ayw-pr-image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 48%),
        #15171c;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 76px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.ayw-pr-champion-tag {
    display: inline-block;
    max-width: 230px;
    overflow: hidden;
    padding: 4px 6px;
    border: 1px solid #b99540;
    background: rgba(214, 179, 90, 0.08);
    color: #e1c475;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Movement badges */
.ayw-pr-movement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid #36383f;
    background: rgba(5, 6, 8, 0.76);
    color: #8b8e96;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ayw-pr-movement--up,
.ayw-pr-mini .ayw-pr-movement--up {
    border-color: rgba(57, 201, 122, 0.45);
    color: var(--ayw-pr-up);
}

.ayw-pr-movement--down,
.ayw-pr-mini .ayw-pr-movement--down {
    border-color: rgba(240, 91, 101, 0.45);
    color: var(--ayw-pr-down);
}

.ayw-pr-movement--new,
.ayw-pr-mini .ayw-pr-movement--new {
    border-color: rgba(214, 179, 90, 0.5);
    color: var(--ayw-pr-new);
}

.ayw-pr-movement--same,
.ayw-pr-mini .ayw-pr-movement--same {
    color: #777a83;
}

/* Board shell */
.ayw-pr-board {
    padding: 30px 28px 38px;
    background: #090a0c;
}

.ayw-pr-board-head {
    padding-bottom: 18px;
}

.ayw-pr-promotion-tabs {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    margin-bottom: 10px;
    border: 1px solid var(--ayw-pr-line);
    background: var(--ayw-pr-panel);
    scrollbar-width: thin;
}

.ayw-pr-promotion-tabs button {
    position: relative;
    display: flex;
    flex: 1 0 118px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid var(--ayw-pr-line);
    background: transparent;
    color: #9b9ea6;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ayw-pr-promotion-tabs button:last-child {
    border-right: 0;
}

.ayw-pr-promotion-tabs button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
}

.ayw-pr-promotion-tabs button:hover,
.ayw-pr-promotion-tabs button.is-active {
    background: #17181c;
    color: #ffffff;
}

.ayw-pr-promotion-tabs button.is-active::after {
    background: var(--ayw-pr-red);
}

.ayw-pr-promotion-tabs strong {
    color: #70737c;
    font-family: var(--aywt-body, Inter, Segoe UI, Roboto, sans-serif);
    font-size: 9px;
    font-weight: 800;
}

.ayw-pr-promotion-tabs button.is-active strong {
    color: #ffffff;
}

.ayw-pr-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 210px 92px;
    gap: 8px;
    margin-bottom: 14px;
}

.ayw-pr-search,
.ayw-pr-select-wrap,
.ayw-pr-reset {
    min-height: 46px;
    border: 1px solid var(--ayw-pr-line);
    background: var(--ayw-pr-panel);
}

.ayw-pr-search {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    color: #747780;
}

.ayw-pr-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.ayw-pr-search input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 12px;
}

.ayw-pr-search input::placeholder {
    color: #747780;
    opacity: 1;
}

.ayw-pr-select-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.ayw-pr-select-wrap > span {
    color: #777a83;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ayw-pr-select-wrap select {
    width: 100%;
    height: 44px;
    padding: 0 27px 0 5px;
    border: 0 !important;
    outline: 0;
    background: #101114 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ayw-pr-reset {
    padding: 0 12px;
    color: #b7b9be;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ayw-pr-reset:hover {
    border-color: #5a5d65;
    background: #17181c;
    color: #ffffff;
}

.ayw-pr-board-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 14px;
    align-items: start;
}

/* Ranking table */
.ayw-pr-table-wrap {
    min-width: 0;
}

.ayw-pr-table-head {
    display: grid;
    grid-template-columns: 64px 54px minmax(180px, 1fr) minmax(132px, 0.55fr) 78px 24px;
    gap: 10px;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--ayw-pr-line);
    border-bottom: 0;
    background: #0e0f12;
    color: #70737c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ayw-pr-tier {
    border: 1px solid var(--ayw-pr-line);
    border-top: 0;
    background: #0c0d10;
}

.ayw-pr-tier-head {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 10px 14px;
    border-top: 3px solid var(--tier-accent, var(--ayw-pr-red));
    border-bottom: 1px solid var(--ayw-pr-line);
    background: #131419;
}

.ayw-pr-tier-range {
    color: var(--tier-accent, var(--ayw-pr-red));
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.ayw-pr-tier-head h3 {
    margin: 0 !important;
    color: #ffffff !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase;
}

.ayw-pr-tier-head p {
    margin: 4px 0 0 !important;
    color: #7d8089 !important;
    font-size: 10px;
    line-height: 1.35;
}

.ayw-pr-tier-rows {
    display: block;
}

.ayw-pr-row {
    position: relative;
    display: grid;
    grid-template-columns: 64px 54px minmax(180px, 1fr) minmax(132px, 0.55fr) 78px 24px;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ayw-pr-line-soft);
    background: #0c0d10;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.ayw-pr-row:last-child {
    border-bottom: 0;
}

.ayw-pr-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--ayw-accent, var(--ayw-pr-red));
    opacity: 0.75;
}

.ayw-pr-row:hover {
    z-index: 1;
    background: #17181c;
    box-shadow: inset 0 0 0 1px #34363d;
}

.ayw-pr-row-rank {
    color: #f3f3f4;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.ayw-pr-row-photo {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid #36383f;
    background: #17181c;
}

.ayw-pr-row-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
}

.ayw-pr-row-photo .ayw-pr-image-fallback {
    font-size: 20px;
}

.ayw-pr-row-identity {
    display: block;
    min-width: 0;
}

.ayw-pr-row-identity > strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.005em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ayw-pr-row-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-top: 6px;
}

.ayw-pr-row-meta .ayw-pr-promo {
    flex: 0 0 auto;
}

.ayw-pr-row-meta .ayw-pr-champion-tag {
    min-width: 0;
}

.ayw-pr-mobile-rating {
    display: none;
    color: #cfd1d6;
    font-size: 9px;
    font-weight: 800;
}

.ayw-pr-score {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ayw-pr-score > span:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.ayw-pr-score small {
    color: #6f727a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ayw-pr-score strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ayw-pr-score-bar {
    display: block;
    height: 3px;
    margin-top: 8px;
    overflow: hidden;
    background: #26282e;
}

.ayw-pr-score-bar i {
    display: block;
    height: 100%;
    background: var(--ayw-accent, var(--ayw-pr-red));
}

.ayw-pr-row .ayw-pr-movement {
    min-width: 66px;
    background: #111216;
}

.ayw-pr-row-arrow {
    color: #6e7179;
    font-size: 24px;
    line-height: 1;
    text-align: right;
    transition: color 140ms ease, transform 140ms ease;
}

.ayw-pr-row:hover .ayw-pr-row-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.ayw-pr-no-results {
    padding: 48px 22px;
    border: 1px solid var(--ayw-pr-line);
    background: #101114;
    text-align: center;
}

.ayw-pr-no-results strong,
.ayw-pr-no-results span {
    display: block;
}

.ayw-pr-no-results strong {
    color: #ffffff;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 25px;
    text-transform: uppercase;
}

.ayw-pr-no-results span {
    margin-top: 7px;
    color: #858892;
    font-size: 12px;
}

.ayw-pr-load-more {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    border: 1px solid #4a2025;
    border-top: 3px solid var(--ayw-pr-red);
    background: #141518;
    color: #ffffff;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ayw-pr-load-more:hover {
    border-color: #713039;
    border-top-color: var(--aywt-red, #df2334);
    background: #1a1b1f;
}

/* Sidebar */
.ayw-pr-sidebar {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-bar .ayw-pr-sidebar {
    top: 50px;
}

.ayw-pr-side-card {
    overflow: hidden;
    border: 1px solid var(--ayw-pr-line);
    border-top: 3px solid #34363d;
    background: var(--ayw-pr-panel);
}

.ayw-pr-side-card > header {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--ayw-pr-line);
    background: #131419;
}

.ayw-pr-side-card h3 {
    margin: 5px 0 0 !important;
    color: #ffffff !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

.ayw-pr-side-body {
    padding: 7px 12px 10px;
}

.ayw-pr-mover-group {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-top: 3px;
    color: var(--ayw-pr-up);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ayw-pr-mover-group--down {
    margin-top: 8px;
    color: var(--ayw-pr-down);
}

.ayw-pr-mover-row,
.ayw-pr-title-row,
.ayw-pr-show-row {
    display: grid;
    align-items: center;
    min-width: 0;
    border-top: 1px solid var(--ayw-pr-line-soft);
    transition: background-color 140ms ease;
}

.ayw-pr-mover-group + .ayw-pr-mover-row,
.ayw-pr-side-body > .ayw-pr-title-row:first-child,
.ayw-pr-side-body > .ayw-pr-show-row:first-child {
    border-top: 0;
}

.ayw-pr-mover-row:hover,
.ayw-pr-title-row:hover,
.ayw-pr-show-row:hover {
    background: #18191d;
}

.ayw-pr-mover-row {
    grid-template-columns: 31px minmax(0, 1fr) 35px;
    gap: 8px;
    min-height: 51px;
    padding: 6px 4px;
}

.ayw-pr-mover-rank {
    color: #858891;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 16px;
    font-weight: 800;
}

.ayw-pr-mover-row > span:nth-child(2),
.ayw-pr-title-row > span:nth-child(2),
.ayw-pr-show-row > span:nth-child(2) {
    min-width: 0;
}

.ayw-pr-mover-row strong,
.ayw-pr-mover-row small,
.ayw-pr-title-row strong,
.ayw-pr-title-row small,
.ayw-pr-show-row strong,
.ayw-pr-show-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayw-pr-mover-row strong,
.ayw-pr-title-row strong,
.ayw-pr-show-row strong {
    color: #f3f3f4;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.ayw-pr-mover-row small,
.ayw-pr-title-row small,
.ayw-pr-show-row small {
    margin-top: 4px;
    color: #7f828a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ayw-pr-mover-row em {
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.ayw-pr-mover-row em.is-up {
    color: var(--ayw-pr-up);
}

.ayw-pr-mover-row em.is-down {
    color: var(--ayw-pr-down);
}

.ayw-pr-title-row {
    position: relative;
    grid-template-columns: 5px minmax(0, 1fr) 30px;
    gap: 9px;
    min-height: 55px;
    padding: 7px 4px;
}

.ayw-pr-title-marker {
    display: block;
    width: 3px;
    height: 34px;
    background: var(--ayw-accent, var(--ayw-pr-red));
}

.ayw-pr-title-row small {
    color: #92959d;
}

.ayw-pr-title-row em {
    color: #f1f1f2;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 17px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.ayw-pr-show-row {
    grid-template-columns: 56px minmax(0, 1fr) 13px;
    gap: 9px;
    min-height: 57px;
    padding: 7px 4px;
}

.ayw-pr-show-row::before {
    content: "";
    position: absolute;
}

.ayw-pr-show-date {
    color: var(--ayw-accent, var(--ayw-pr-red));
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.ayw-pr-show-row em {
    color: #777a82;
    font-size: 20px;
    font-style: normal;
}

.ayw-pr-side-empty,
.ayw-pr-method-card p {
    margin: 6px 0 !important;
    color: #8e9199 !important;
    font-size: 11px;
    line-height: 1.55;
}

.ayw-pr-method-card {
    border-top-color: var(--ayw-pr-red);
}

/* Compact shortcode */
.ayw-pr-mini {
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid var(--ayw-pr-line);
    border-top: 3px solid var(--ayw-pr-red);
    background: #0d0e11;
}

.ayw-pr-mini > header {
    position: relative;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--ayw-pr-line);
    background: #131419;
}

.ayw-pr-mini > header h3 {
    margin: 5px 0 0 !important;
    color: #ffffff !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif) !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.ayw-pr-mini > header > span {
    position: absolute;
    right: 14px;
    bottom: 13px;
    color: #777a82;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ayw-pr-mini-list > a {
    position: relative;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 42px;
    gap: 9px;
    align-items: center;
    min-height: 48px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--ayw-pr-line-soft);
    background: #0d0e11;
}

.ayw-pr-mini-list > a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--ayw-accent, var(--ayw-pr-red));
}

.ayw-pr-mini-list > a:hover {
    background: #17181c;
}

.ayw-pr-mini-rank {
    color: #858891;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 17px;
    font-weight: 900;
}

.ayw-pr-mini-list > a > span:nth-child(2) {
    min-width: 0;
}

.ayw-pr-mini-list strong,
.ayw-pr-mini-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ayw-pr-mini-list strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.ayw-pr-mini-list small {
    margin-top: 3px;
    color: var(--ayw-accent, #a0a2a8);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ayw-pr-mini-list em {
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

.ayw-pr-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 13px;
    background: #131419;
    color: #ffffff !important;
    font-family: var(--aywt-display, Barlow Condensed, Arial Narrow, sans-serif);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ayw-pr-mini-footer:hover {
    background: #1a1b20;
}

.ayw-pr-mini-footer span {
    color: var(--ayw-pr-red);
    font-size: 20px;
}

.ayw-pr-empty {
    padding: 24px;
    border: 1px solid #30323a;
    border-top: 3px solid var(--aywt-red, #df2334);
    background: #101114;
    color: #f4f4f5;
}

/* Responsive */
@media (max-width: 1280px) {
    .ayw-pr-masthead {
        grid-template-columns: minmax(0, 1fr) 500px;
    }

    .ayw-pr-masthead-copy {
        padding-right: 28px;
        padding-left: 28px;
    }

    .ayw-pr-stat {
        padding-right: 15px;
        padding-left: 15px;
    }

    .ayw-pr-leader-copy > strong {
        font-size: clamp(28px, 3vw, 42px);
    }

    .ayw-pr-board-layout {
        grid-template-columns: minmax(0, 1fr) 254px;
    }

    .ayw-pr-row,
    .ayw-pr-table-head {
        grid-template-columns: 58px 50px minmax(160px, 1fr) 118px 70px 20px;
        gap: 8px;
    }
}

@media (max-width: 1060px) {
    .ayw-pr-masthead {
        grid-template-columns: 1fr;
    }

    .ayw-pr-masthead-copy {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid var(--ayw-pr-line);
    }

    .ayw-pr-masthead::after {
        right: 10px;
    }

    .ayw-pr-stat {
        min-height: 104px;
    }

    .ayw-pr-leader-grid {
        grid-template-columns: 1.25fr 1fr 1fr;
    }

    .ayw-pr-leader,
    .ayw-pr-leader--1 {
        min-height: 334px;
    }

    .ayw-pr-board-layout {
        grid-template-columns: 1fr;
    }

    .ayw-pr-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .ayw-pr-side-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .ayw-pr {
        border-right: 0;
        border-left: 0;
    }

    .ayw-pr-masthead-copy {
        min-height: 168px;
        padding: 25px 18px 27px;
    }

    .ayw-pr-title {
        font-size: clamp(46px, 14vw, 68px) !important;
    }

    .ayw-pr-masthead-copy p {
        max-width: 560px;
        font-size: 12px;
    }

    .ayw-pr-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ayw-pr-stat {
        min-height: 86px;
        padding: 16px 18px;
        border-top: 1px solid var(--ayw-pr-line);
    }

    .ayw-pr-stat:nth-child(odd) {
        border-left: 0;
    }

    .ayw-pr-stat:nth-child(-n + 2) {
        border-top: 0;
    }

    .ayw-pr-stat strong {
        font-size: 27px;
    }

    .ayw-pr-leaders {
        padding: 22px 0 28px;
    }

    .ayw-pr-section-heading {
        padding: 0 18px;
    }

    .ayw-pr-section-note {
        display: none;
    }

    .ayw-pr-leader-grid {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        margin-top: 15px;
        padding: 0 18px 7px;
        scroll-padding: 18px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .ayw-pr-leader,
    .ayw-pr-leader--1 {
        flex: 0 0 min(82vw, 390px);
        min-height: 330px;
        scroll-snap-align: start;
    }

    .ayw-pr-leader--1 {
        flex-basis: min(88vw, 430px);
    }

    .ayw-pr-leader-copy > strong,
    .ayw-pr-leader--2 .ayw-pr-leader-copy > strong,
    .ayw-pr-leader--3 .ayw-pr-leader-copy > strong {
        font-size: 31px;
    }

    .ayw-pr-board {
        padding: 24px 14px 30px;
    }

    .ayw-pr-board-head {
        padding: 0 4px 15px;
    }

    .ayw-pr-promotion-tabs {
        margin-right: -14px;
        margin-left: -14px;
        border-right: 0;
        border-left: 0;
    }

    .ayw-pr-promotion-tabs button {
        flex-basis: 128px;
    }

    .ayw-pr-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .ayw-pr-search {
        grid-column: 1 / -1;
    }

    .ayw-pr-table-head {
        display: none;
    }

    .ayw-pr-tier {
        margin-top: 9px;
        border-top: 1px solid var(--ayw-pr-line);
    }

    .ayw-pr-tier:first-child {
        margin-top: 0;
    }

    .ayw-pr-tier-head {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 61px;
        padding: 9px 10px;
    }

    .ayw-pr-tier-head h3 {
        font-size: 21px !important;
    }

    .ayw-pr-tier-head p {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ayw-pr-row {
        grid-template-columns: 43px 44px minmax(0, 1fr) 58px;
        gap: 8px;
        min-height: 66px;
        padding: 7px 8px;
    }

    .ayw-pr-row-rank {
        font-size: 23px;
    }

    .ayw-pr-row-photo {
        width: 42px;
        height: 42px;
    }

    .ayw-pr-row-identity > strong {
        font-size: 17px;
    }

    .ayw-pr-row-meta {
        gap: 6px;
        margin-top: 5px;
    }

    .ayw-pr-row-meta .ayw-pr-champion-tag {
        display: none;
    }

    .ayw-pr-mobile-rating {
        display: inline;
    }

    .ayw-pr-score,
    .ayw-pr-row-arrow {
        display: none;
    }

    .ayw-pr-row .ayw-pr-movement {
        min-width: 54px;
        min-height: 25px;
        padding: 0 5px;
    }

    .ayw-pr-sidebar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .ayw-pr-section-heading,
    .ayw-pr-board-head {
        align-items: flex-start;
    }

    .ayw-pr-board-status {
        padding-top: 8px;
    }

    .ayw-pr-toolbar {
        grid-template-columns: minmax(0, 1fr) 78px;
    }

    .ayw-pr-select-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 4px 7px 0;
    }

    .ayw-pr-select-wrap > span {
        padding-left: 5px;
    }

    .ayw-pr-select-wrap select {
        height: 30px;
        padding-left: 4px;
        font-size: 10px;
    }

    .ayw-pr-reset {
        font-size: 9px;
    }

    .ayw-pr-tier-head p {
        display: none;
    }

    .ayw-pr-row {
        grid-template-columns: 38px 42px minmax(0, 1fr) 50px;
        gap: 7px;
        min-height: 62px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .ayw-pr-row-rank {
        font-size: 21px;
    }

    .ayw-pr-row-photo {
        width: 40px;
        height: 40px;
    }

    .ayw-pr-row-identity > strong {
        font-size: 16px;
    }

    .ayw-pr-row-meta .ayw-pr-promo {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ayw-pr-row .ayw-pr-movement {
        min-width: 46px;
        font-size: 8px;
    }

    .ayw-pr-sidebar {
        display: flex;
    }
}

@media (max-width: 390px) {
    .ayw-pr-board {
        padding-right: 9px;
        padding-left: 9px;
    }

    .ayw-pr-promotion-tabs {
        margin-right: -9px;
        margin-left: -9px;
    }

    .ayw-pr-row {
        grid-template-columns: 36px 38px minmax(0, 1fr) 46px;
        gap: 5px;
    }

    .ayw-pr-row-photo {
        width: 37px;
        height: 37px;
    }

    .ayw-pr-row-identity > strong {
        font-size: 15px;
    }

    .ayw-pr-mobile-rating {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayw-pr *,
    .ayw-pr *::before,
    .ayw-pr *::after,
    .ayw-pr-mini *,
    .ayw-pr-mini *::before,
    .ayw-pr-mini *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 5.1: names in the sidebar match the table (some ring names are stored in mixed case) */
.ayw-pr-mover-row strong,
.ayw-pr-title-row strong,
.ayw-pr-show-row strong {
    text-transform: uppercase;
}

/* Movement badges explain themselves on hover ("Was #21 on 11 Oct") */
.ayw-pr-movement[title]:not([title=""]) {
    cursor: help;
}
