.widget-ranking-champions { width: 240px; min-width: 240px; height: 602px; max-height: 602px; box-sizing: border-box; align-self: start; margin: 1rem 0; padding: 1.1rem 0.75rem 0.8rem; display: flex; flex-direction: column; gap: 0.7rem; position: relative; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.5); border-radius: 10px; background: linear-gradient(180deg, rgba(30, 18, 61, 0.94) 0%, rgba(10, 12, 24, 0.96) 32%, rgba(8, 10, 20, 0.98) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(108, 99, 255, 0.12); contain: layout paint; }
.widget-ranking-champions::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 0%, rgba(176, 102, 255, 0.2), transparent 38%); }
.ranking-champions__header { position: relative; z-index: 1; min-width: 0; text-align: center; text-transform: uppercase; }
.ranking-champions__eyebrow { display: block; margin-bottom: 0.15rem; color: rgba(196, 181, 253, 0.78); font-family: "JetBrains Mono", monospace; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; }
.ranking-champions__header h2 { margin: 0; color: #f0abfc; font-family: "Kanit", sans-serif; font-size: 1.24rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.05; text-shadow: 0 0 14px rgba(217, 70, 239, 0.42); }
.ranking-champions__header p { margin: 0.3rem auto 0; max-width: 100%; overflow: hidden; color: #a5b4fc; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-overflow: ellipsis; white-space: nowrap; }
.ranking-champions__list { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.5rem; min-height: 0; }
.ranking-champion { width: 100%; min-height: 0; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; padding: 0.32rem 0.45rem 0.38rem; position: relative; overflow: visible; color: inherit; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 9px; background: linear-gradient(180deg, rgba(9, 12, 26, 0.92), rgba(5, 8, 18, 0.82)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.ranking-champion:hover { background: rgba(18, 16, 42, 0.92); border-color: rgba(167, 139, 250, 0.54); box-shadow: inset 0 0 18px rgba(108, 99, 255, 0.12), 0 0 16px rgba(108, 99, 255, 0.12); }
.ranking-champion__place { width: 60px; height: 60px; position: absolute; top: 18px; right: -7px; z-index: 4; display: flex; align-items: center; justify-content: center; color: #fff; font-family: "Kanit", sans-serif; font-size: 1.12rem; font-weight: 900; line-height: 1; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.92), 0 0 8px currentColor; }
.ranking-champion__place::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--ranking-champion-medallion); background-position: center; background-repeat: no-repeat; background-size: contain; filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5)); transition: filter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ranking-champion--1 .ranking-champion__place { color: #fff3b0; }
.ranking-champion--1 .ranking-champion__place::before { filter: hue-rotate(205deg) saturate(1.7) brightness(1.12) drop-shadow(0 0 10px rgba(250, 204, 21, 0.72)); }
.ranking-champion--2 .ranking-champion__place { color: #eef2ff; }
.ranking-champion--2 .ranking-champion__place::before { filter: grayscale(0.72) saturate(0.7) brightness(1.28) drop-shadow(0 0 9px rgba(199, 210, 254, 0.62)); }
.ranking-champion--3 .ranking-champion__place { color: #ffddb8; }
.ranking-champion--3 .ranking-champion__place::before { filter: hue-rotate(185deg) saturate(1.55) brightness(0.86) drop-shadow(0 0 9px rgba(251, 146, 60, 0.62)); }
.ranking-champion--1:hover .ranking-champion__place::before { filter: hue-rotate(205deg) saturate(1.8) brightness(1.24) drop-shadow(0 0 14px rgba(250, 204, 21, 0.88)); }
.ranking-champion--2:hover .ranking-champion__place::before { filter: grayscale(0.72) saturate(0.72) brightness(1.4) drop-shadow(0 0 13px rgba(224, 231, 255, 0.82)); }
.ranking-champion--3:hover .ranking-champion__place::before { filter: hue-rotate(185deg) saturate(1.65) brightness(0.98) drop-shadow(0 0 13px rgba(251, 146, 60, 0.82)); }
.ranking-champion__portrait { display: block; width: 100%; min-height: 0; flex: 1 1 auto; overflow: hidden; border-radius: 7px; background-color: #0b0d17; background-image: linear-gradient(180deg, rgba(5, 8, 18, 0.01), rgba(5, 8, 18, 0.16)), var(--ranking-champion-avatar); background-repeat: no-repeat; background-position: center, var(--ranking-champion-avatar-position, 29%) center; background-size: 100% 100%, auto 100%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -18px 24px rgba(4, 6, 14, 0.22), 0 8px 18px rgba(0, 0, 0, 0.32); }
.ranking-champion__identity { width: 100%; min-width: 0; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.22rem; padding: 0.3rem 0.2rem 0; position: relative; z-index: 2; text-align: center; }
.ranking-champion__identity strong { width: 100%; max-width: 100%; overflow: hidden; color: #f8fafc; font-family: "Kanit", sans-serif; font-size: 0.96rem; font-weight: 800; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.72); text-transform: uppercase; }
.ranking-champion__identity span { color: #fbbf24; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; font-weight: 900; line-height: 1; white-space: nowrap; }
.ranking-champions__archive-link { position: relative; z-index: 1; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 0.6rem; color: #c4b5fd; text-decoration: none; text-transform: uppercase; border: 1px solid rgba(108, 99, 255, 0.28); border-radius: 6px; background: rgba(108, 99, 255, 0.1); font-family: "Kanit", sans-serif; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.ranking-champions__archive-link:hover { color: #fff; border-color: rgba(167, 139, 250, 0.62); background: rgba(108, 99, 255, 0.22); box-shadow: 0 0 14px rgba(108, 99, 255, 0.18); }
.ranking-champions__archive-link i { font-size: 0.62rem; }
@media (max-width: 1279.98px) {
  .widget-ranking-champions { --ranking-champion-portrait-size: 120px; width: auto; min-width: 0; height: auto; max-height: none; margin: 0 0.5rem 0.75rem; padding: 0.8rem; align-self: auto; gap: 0.7rem; }
  .ranking-champions__header { display: flex; align-items: baseline; justify-content: center; gap: 0.45rem; }
  .ranking-champions__eyebrow { display: none; }
  .ranking-champions__header h2 { font-size: 1rem; }
  .ranking-champions__header p { max-width: 50%; margin: 0; font-size: 0.62rem; }
  .ranking-champions__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  .ranking-champion { min-height: 172px; padding: 0.45rem 0.35rem 0.55rem; }
  .ranking-champion__place { width: 54px; height: 54px; top: 15px; right: auto; left: calc(50% - 82px); font-size: 0.98rem; }
  .ranking-champion__portrait { width: var(--ranking-champion-portrait-size); flex: 0 0 auto; aspect-ratio: 1; }
  .ranking-champion__identity { padding-top: 0.45rem; }
  .ranking-champion__identity strong { font-size: 0.78rem; }
  .ranking-champion__identity span { font-size: 0.58rem; }
  .ranking-champions__archive-link { align-self: center; min-width: 180px; }
}
@media (max-width: 767px) {
  .widget-ranking-champions { --ranking-champion-portrait-size: 94px; margin: 0 0.35rem 0.65rem; padding: 0.7rem 0.35rem; }
  .ranking-champions__header h2 { font-size: 0.88rem; }
  .ranking-champions__header p { max-width: 48%; font-size: 0.56rem; }
  .ranking-champions__list { gap: 0.25rem; }
  .ranking-champion { min-width: 0; min-height: 142px; padding: 0.35rem 0.2rem 0.45rem; border-radius: 6px; }
  .ranking-champion__place { width: 44px; height: 44px; top: 10px; left: calc(50% - 65px); font-size: 0.8rem; }
  .ranking-champion__portrait { max-width: 100%; }
  .ranking-champion__identity { padding: 0.38rem 0.1rem 0; }
  .ranking-champion__identity strong { font-size: 0.68rem; }
  .ranking-champion__identity span { font-size: 0.5rem; }
  .ranking-champions__archive-link { min-width: 180px; min-height: 34px; font-size: 0.58rem; }
}
