/* Page-specific styles split from hongyi-mobile.css: ranking */

.page[data-panel="ranking"] .sold-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% - 20px);
  max-width: none;
  margin: 8px auto 10px;
  padding: 6px 8px;
  gap: 8px;
  border-radius: 14px;
}

.page[data-panel="ranking"] .sold-filter-grid.ranking-month-only {
  grid-template-columns: minmax(0, 1fr) !important;
}

body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid,
body:not(.desktop-page) .page[data-panel="ranking"] > .metric-grid {
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
}

.page[data-panel="ranking"] .sold-filter-grid::before {
  inset: 4px;
  border-radius: 12px;
}

.page[data-panel="ranking"] .sold-filter-grid select {
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.rank-list .mine {
  border-color: var(--orange);
  background: #fff8e9;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
  overflow: visible;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 14px;
  overflow: visible;
  border-radius: 16px;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card-head {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(30, 95, 199, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, #edf6ff 0%, #dbeafe 100%);
  box-shadow: inset 3px 0 0 #2f7dea;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card-head h2 {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1e5fc7;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card-head p {
  display: none;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card:nth-child(2) .ranking-card-head {
  border-color: rgba(255, 138, 24, 0.28);
  background: linear-gradient(135deg, #fff4df 0%, #ffe2bd 100%);
  box-shadow: inset 3px 0 0 #ff8a18;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card:nth-child(2) .ranking-card-head h2 {
  color: #c75d10;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card:nth-child(3) .ranking-card-head {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, #fff0f1 0%, #ffe0e6 100%);
  box-shadow: inset 3px 0 0 #ef4444;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-card:nth-child(3) .ranking-card-head h2 {
  color: #d43f35;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-blue .card-title,
body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-success .card-title,
body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-gold .card-title {
  min-height: 46px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 13px;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-blue .card-title {
  background: linear-gradient(135deg, #eef5ff 0%, #dcecff 100%);
  color: #1e5fc7;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-success .card-title {
  background: linear-gradient(135deg, #e7f8ef 0%, #d6f0e2 100%);
  color: #11824f;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card.tone-gold .card-title {
  background: linear-gradient(135deg, #fff1dc 0%, #ffe0ab 100%);
  color: #b5620f;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card .card-title h2 {
  color: currentColor;
  font-weight: 900;
}

body:not(.desktop-page) .page[data-panel="ranking"] .content-card .card-title > span {
  display: none;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list li {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list li.mine {
  border-color: var(--orange);
  background: #fff8e9;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #071225;
  font-size: 12px;
  font-weight: 950;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list li:nth-child(1) b,
body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list li.mine b {
  background: #ff8a1c;
  color: #ffffff;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list strong {
  display: block;
  overflow: hidden;
  color: #071225;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list small {
  color: #48617d;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list li > span {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 68px;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list em {
  color: #071225;
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

body:not(.desktop-page) .page[data-panel="ranking"] .ranking-list i {
  position: absolute;
  top: -7px;
  right: 10px;
  min-width: 44px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

/* 2026-08-10: mobile podium ranking layout */
@media (max-width: 899px) {
  body:not(.desktop-page) .page[data-panel="ranking"].active {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 108px;
    background: #f7f8fa;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .page-title-strip,
  body:not(.desktop-page) .page[data-panel="ranking"] > .metric-grid,
  body:not(.desktop-page) .page[data-panel="ranking"] > .ranking-board {
    display: none !important;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .mobile-ranking-shell {
    display: contents;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid {
    order: 1;
    display: grid !important;
    grid-template-columns: .88fr 1fr .94fr !important;
    width: 100%;
    margin: -12px auto 0;
    padding: 0 14px 16px;
    gap: 7px !important;
    border: 1px solid #e8e3da;
    border-top: 0;
    border-radius: 0 0 17px 17px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(28, 35, 46, .04);
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid.ranking-month-only {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid::before {
    display: none;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid select {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0 23px 0 9px;
    border: 1px solid #dce1e8;
    border-radius: 9px;
    background-color: #fff;
    color: #202631;
    font-size: 12px;
    font-weight: 750;
  }

  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid.ranking-month-only select {
    width: 100%;
    padding-right: 38px;
    padding-left: 14px;
    font-size: 13px;
  }

  .mobile-ranking-heading {
    order: 0;
    display: flex;
    width: 100%;
    min-height: 84px;
    align-items: center;
    gap: 12px;
    margin: 4px auto 0;
    padding: 16px 15px 22px;
    border: 1px solid #e8e3da;
    border-bottom: 0;
    border-radius: 17px 17px 0 0;
    background: #fff;
  }

  .mobile-ranking-heading > span {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff6d9, #ffe6a0);
    font-size: 29px;
  }

  .mobile-ranking-heading h2 {
    margin: 0;
    color: #18202d;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .02em;
  }

  .mobile-ranking-heading p {
    margin: 3px 0 0;
    color: #6e7785;
    font-size: 11px;
    font-weight: 650;
  }

  .mobile-ranking-tabs {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin: 0 auto;
    padding: 0;
  }

  .mobile-ranking-tabs button {
    display: inline-flex;
    min-width: 0;
    height: 45px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 6px;
    border: 1px solid #dde1e6;
    border-radius: 11px;
    background: #fff;
    color: #252b35;
    box-shadow: 0 2px 7px rgba(22, 31, 45, .03);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
  }

  .mobile-ranking-tabs button i {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
  }

  .mobile-ranking-tabs button.active {
    border-color: #d89412;
    background: linear-gradient(135deg, #dfa218 0%, #c77c04 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(197, 124, 4, .19);
  }

  .mobile-ranking-podium {
    position: relative;
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-height: 264px;
    align-items: end;
    gap: 8px;
    margin: 0 auto;
    padding: 34px 0 6px;
  }

  .mobile-ranking-podium::before,
  .mobile-ranking-podium::after {
    position: absolute;
    bottom: 3px;
    z-index: 0;
    width: 58px;
    height: 82px;
    content: "";
    opacity: .52;
    background: radial-gradient(ellipse at bottom, rgba(224, 157, 42, .28), transparent 67%);
  }

  .mobile-ranking-podium::before { left: -21px; transform: rotate(-14deg); }
  .mobile-ranking-podium::after { right: -21px; transform: rotate(14deg); }

  .mobile-ranking-podium-card {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: 194px;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 6px 15px;
    border: 1px solid #dddfe4;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
    box-shadow: 0 6px 14px rgba(23, 31, 43, .07);
  }

  .mobile-ranking-podium-card.first {
    min-height: 232px;
    padding-top: 31px;
    border-color: #dba93f;
    background: linear-gradient(180deg, #fffefa 0%, #fff9e9 100%);
    box-shadow: 0 10px 22px rgba(205, 144, 21, .16), inset 0 -4px 0 #efbd52;
  }

  .mobile-ranking-podium-card.third { border-color: #e2ccb1; }

  .mobile-ranking-podium-card > b {
    position: absolute;
    top: -19px;
    left: 50%;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    transform: translateX(-50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: #858b96;
    color: #fff;
    box-shadow: 0 2px 7px rgba(21, 27, 38, .2);
    font-size: 19px;
    font-weight: 900;
  }

  .mobile-ranking-podium-card.first > b,
  .mobile-ranking-podium-card.third > b {
    background: linear-gradient(145deg, #d8950d, #ad6300);
  }

  .mobile-ranking-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #edf0f4, #dfe4eb);
    color: #526071;
    box-shadow: 0 0 0 1px #e0e4e9;
    font-size: 20px;
    font-weight: 900;
  }

  .mobile-ranking-podium-card.first .mobile-ranking-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

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

  .mobile-ranking-podium-card > strong {
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    color: #1b2330;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-ranking-podium-card > em {
    margin-top: 12px;
    color: #26334a;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-ranking-podium-card.first > em {
    color: #b76d02;
    font-size: 28px;
  }

  .mobile-ranking-podium-card.third > em { color: #b26c21; }

  .mobile-ranking-podium-card > small {
    margin-top: 10px;
    color: #667180;
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-ranking-quick-list,
  .mobile-ranking-full ol {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 9px;
    list-style: none;
  }

  .mobile-ranking-quick-list {
    order: 4;
    width: 100%;
    margin: 0 auto;
  }

  .mobile-ranking-quick-list li,
  .mobile-ranking-full li {
    display: grid;
    min-height: 72px;
    grid-template-columns: 32px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #e2e5e9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(24, 34, 48, .025);
  }

  .mobile-ranking-quick-list li > b,
  .mobile-ranking-full li > b {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: #f2f4f7;
    color: #1b2330;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-ranking-quick-list .mobile-ranking-avatar,
  .mobile-ranking-full .mobile-ranking-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .mobile-ranking-quick-list li > div,
  .mobile-ranking-full li > div { min-width: 0; }

  .mobile-ranking-quick-list li strong,
  .mobile-ranking-full li strong {
    display: block;
    overflow: hidden;
    color: #1c2431;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-ranking-quick-list li small,
  .mobile-ranking-full li small {
    display: block;
    margin-top: 3px;
    color: #737d8b;
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-ranking-quick-list li > em,
  .mobile-ranking-full li > em {
    color: #172033;
    font-size: 21px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-ranking-quick-list li.empty,
  .mobile-ranking-full li.empty {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    color: #7b8490;
  }

  .mobile-ranking-mine {
    position: relative;
    order: 5;
    display: grid;
    width: 100%;
    min-height: 82px;
    grid-template-columns: auto 55px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin: 2px auto 0;
    padding: 12px 15px;
    overflow: hidden;
    border: 1px solid #efd9b4;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf2 0%, #fff4e2 100%);
  }

  .mobile-ranking-mine::after {
    position: absolute;
    right: -9px;
    bottom: -18px;
    color: rgba(219, 152, 27, .12);
    content: "▟";
    font-size: 86px;
    line-height: 1;
  }

  .mobile-ranking-mine > span:first-child {
    position: relative;
    z-index: 1;
    color: #a9680b;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-ranking-mine > div,
  .mobile-ranking-mine > em,
  .mobile-ranking-mine > .mobile-ranking-avatar { position: relative; z-index: 1; }
  .mobile-ranking-mine > div strong { display: block; color: #1d2531; font-size: 14px; font-weight: 900; }
  .mobile-ranking-mine > div small { display: block; margin-top: 3px; color: #727b87; font-size: 10px; }
  .mobile-ranking-mine > em { color: #9b5f08; font-size: 22px; font-style: normal; font-weight: 900; white-space: nowrap; }

  .mobile-ranking-expand {
    order: 6;
    display: grid;
    width: 100%;
    height: 52px;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #202733;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  }

  .mobile-ranking-expand > span:first-child,
  .mobile-ranking-expand > b {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #202733;
  }

  .mobile-ranking-expand svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-ranking-expand-label {
    text-align: left;
    white-space: nowrap;
  }

  .mobile-ranking-expand > b { justify-self: end; }
  .mobile-ranking-expand > b svg { width: 17px; height: 17px; }

  .mobile-ranking-full {
    order: 7;
    width: 100%;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    background: #fff;
  }

  .mobile-ranking-full > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .mobile-ranking-full > header h3 { margin: 0; color: #19212d; font-size: 16px; font-weight: 900; }
  .mobile-ranking-full > header span { color: #a86b0a; font-size: 11px; font-weight: 800; }
  .mobile-ranking-full li.mine { border-color: #e0a73b; background: #fff8e9; }
}

@media (max-width: 370px) {
  body:not(.desktop-page) .page[data-panel="ranking"] > .sold-filter-grid select { padding-left: 6px; font-size: 10px; }
  .mobile-ranking-tabs button { gap: 3px; font-size: 10px; }
  .mobile-ranking-podium { gap: 5px; }
  .mobile-ranking-podium-card { padding-right: 3px; padding-left: 3px; }
  .mobile-ranking-podium-card > em { font-size: 19px; }
  .mobile-ranking-podium-card.first > em { font-size: 24px; }
}

/* Ranking vehicle details */
[data-ranking-person-detail]:not(.is-empty) {
  cursor: pointer;
}

[data-ranking-person-detail]:not(.is-empty):focus-visible {
  outline: 3px solid rgba(217, 145, 16, .32);
  outline-offset: 2px;
}

body.ranking-detail-open {
  overflow: hidden;
}

.ranking-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 20, 39, .76);
  backdrop-filter: blur(4px);
}

.ranking-detail-dialog {
  display: flex;
  width: min(980px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6d7bc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(4, 13, 31, .28);
}

.ranking-detail-dialog > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #eadfce;
  background: linear-gradient(135deg, #fffaf0, #fff);
}

.ranking-detail-dialog > header small {
  color: #b16d09;
  font-size: 12px;
  font-weight: 850;
}

.ranking-detail-dialog > header h2 {
  margin: 5px 0 0;
  color: #111b2e;
  font-size: 25px;
  font-weight: 950;
}

.ranking-detail-dialog > header button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d8dde6;
  border-radius: 50%;
  background: #fff;
  color: #172033;
  font-size: 29px;
  line-height: 1;
}

.ranking-detail-summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px 0;
}

.ranking-detail-summary article {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: #fffaf1;
}

.ranking-detail-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.ranking-detail-summary strong {
  color: #111b2e;
  font-size: 24px;
  font-weight: 950;
}

.ranking-detail-groups {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 24px 22px;
  overflow: auto;
}

.ranking-detail-group {
  align-self: start;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-radius: 15px;
  background: #fff;
}

.ranking-detail-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: #edf5ff;
  color: #1d5fae;
}

.ranking-detail-group.is-purchased > header {
  background: #fff3df;
  color: #ae6505;
}

.ranking-detail-group h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.ranking-detail-group > header span {
  font-size: 13px;
  font-weight: 900;
}

.ranking-detail-group ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-detail-group li {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid #edf0f4;
}

.ranking-detail-group li:first-child {
  border-top: 0;
}

.ranking-detail-group li > div {
  min-width: 0;
}

.ranking-detail-group li strong,
.ranking-detail-group li span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-detail-group li strong {
  color: #121c2e;
  font-size: 14px;
  font-weight: 900;
}

.ranking-detail-group li span,
.ranking-detail-group li time {
  color: #6c7788;
  font-size: 11px;
  font-weight: 700;
}

.ranking-detail-group li span {
  margin-top: 4px;
}

.ranking-detail-group li em {
  min-width: 45px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f3ff;
  color: #1d64b7;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.ranking-detail-group.is-purchased li em {
  background: #fff1d8;
  color: #a86208;
}

.ranking-detail-group li.is-empty {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #8490a0;
  font-size: 13px;
  font-weight: 750;
}

.ranking-detail-dialog > footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #e6eaf0;
  background: #f8fafc;
}

.ranking-detail-dialog > footer button {
  min-width: 116px;
  height: 42px;
  border: 1px solid #cf8b18;
  border-radius: 11px;
  background: linear-gradient(135deg, #e8aa32, #cb8110);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .ranking-detail-layer {
    align-items: end;
    padding: 0;
  }

  .ranking-detail-dialog {
    width: 100%;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
  }

  .ranking-detail-dialog > header {
    padding: 17px 18px;
  }

  .ranking-detail-dialog > header h2 {
    font-size: 20px;
  }

  .ranking-detail-dialog > header button {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .ranking-detail-summary {
    gap: 7px;
    padding: 13px 14px 0;
  }

  .ranking-detail-summary article {
    padding: 11px 9px;
  }

  .ranking-detail-summary span {
    font-size: 10px;
  }

  .ranking-detail-summary strong {
    font-size: 18px;
  }

  .ranking-detail-groups {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    padding: 13px 14px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-detail-group {
    position: relative;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    align-self: stretch;
  }

  .ranking-detail-group ol {
    position: relative;
    height: auto;
  }

  .ranking-detail-group li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ranking-detail-group li time {
    grid-row: 2;
    grid-column: 1;
  }

  .ranking-detail-group li em {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .ranking-detail-dialog > footer {
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  }

  .ranking-detail-dialog > footer button {
    width: 100%;
  }
}
