.uremono-latest-ranking,
.uremono-latest-ranking *,
.uremono-latest-ranking *::before,
.uremono-latest-ranking *::after {
  box-sizing: border-box;
}

.uremono-latest-ranking {
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  background: #fff;
  color: #10213d;
  box-shadow: 0 12px 30px rgba(16, 33, 61, 0.08);
}

.uremono-latest-ranking-header {
  padding: 20px 26px 10px;
  background: linear-gradient(135deg, #f4f8ff 0%, #fff8ec 100%);
}

.uremono-latest-ranking-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}

.uremono-latest-ranking-title::after {
  display: block;
  width: 100%;
  margin-top: 8px;
  border-bottom: 3px solid #0b4c9c;
  content: "";
}

.uremono-latest-ranking-period {
  margin: 9px 0 0;
  color: #52647e;
  font-size: 14px;
}

.uremono-latest-ranking-body {
  display: grid;
  gap: 12px;
  padding: 10px 26px 20px;
}

.uremono-latest-ranking-body--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uremono-latest-ranking-body--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uremono-latest-ranking-winner {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eadfc9;
  border-radius: 12px;
  background: #fffaf1;
}

.uremono-latest-ranking-image-wrap {
  flex: 0 0 92px;
  width: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f4f8;
}

.uremono-latest-ranking-image,
.uremono-latest-ranking-image-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
}

.uremono-latest-ranking-image {
  object-fit: contain;
}

.uremono-latest-ranking-image-placeholder {
  color: #c28a1b;
  font-size: 42px;
  font-weight: 800;
}

.uremono-latest-ranking-winner-copy {
  min-width: 0;
}

.uremono-latest-ranking-shop {
  display: block;
  margin-top: 6px;
  color: #65748a;
  font-size: 12px;
  line-height: 1.5;
}

.uremono-latest-ranking-rank {
  display: block;
  margin-bottom: 7px;
  color: #b06e00;
  font-size: 13px;
  font-weight: 800;
}

.uremono-latest-ranking-product {
  display: -webkit-box;
  overflow: hidden;
  color: #083f8c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.uremono-latest-ranking-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fbfcfe;
}

.uremono-latest-ranking-stat-label,
.uremono-latest-ranking-stat-note {
  display: block;
  color: #65748a;
  font-size: 12px;
}

.uremono-latest-ranking-stat-value {
  display: block;
  margin: 7px 0 4px;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.uremono-latest-ranking-footer {
  padding: 0 26px 24px;
}

.uremono-latest-ranking-actions {
  display: flex;
  gap: 12px;
}

.uremono-latest-ranking-primary,
.uremono-latest-ranking-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.uremono-latest-ranking-actions > * {
  flex: 1 1 0;
}

.uremono-latest-ranking-genres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e1e7ef;
}

.uremono-latest-ranking-genre-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #fff;
  color: #174a88;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: normal;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
}

.uremono-latest-ranking-primary {
  background: #073a7c;
  color: #fff;
}

.uremono-latest-ranking-secondary {
  border: 1px solid #aac0dc;
  color: #073a7c;
  background: #fff;
}

@media (max-width: 1000px) {
  .uremono-latest-ranking-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uremono-latest-ranking-genres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .uremono-latest-ranking-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .uremono-latest-ranking-body {
    grid-template-columns: 1fr;
    padding: 8px 20px 18px;
  }

  .uremono-latest-ranking-header {
    padding: 20px;
  }

  .uremono-latest-ranking-actions {
    padding: 0;
  }

  .uremono-latest-ranking-genres {
    grid-template-columns: 1fr;
  }

  .uremono-latest-ranking-footer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .uremono-latest-ranking-winner {
    align-items: flex-start;
  }

  .uremono-latest-ranking-image-wrap {
    flex-basis: 80px;
    width: 80px;
  }
}
