/* 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;
}

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;
}
