:root {
  --theme-sidebar-width: 330px;
}

.widget_jnc_hot_apps {
  --jnc-hot-app-accent: var(--theme-color);
  --jnc-hot-app-muted: var(--theme-gray-color, #9298a2);
}

.widget_jnc_hot_apps,
.widget_jnc_hot_apps * {
  box-sizing: border-box;
}

.widget_jnc_hot_apps .widget-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.jnc-hot-apps-list {
  border-radius: var(--theme-border-radius-m, 8px);
  container-type: inline-size;
  padding: 20px 0px;
}

.jnc-hot-app {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  min-width: 0;
}

.jnc-hot-app:not(:last-child) {
  border-bottom: 1px dashed var(--theme-border-color, #d7d9dd);
  padding-bottom: 20px;
}

.jnc-hot-app + .jnc-hot-app {
  margin-top: 20px;
}

.jnc-hot-app__icon {
  align-items: center;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--jnc-hot-app-muted) 12%, #fff);
  border-radius: 17px;
  color: var(--jnc-hot-app-muted);
  display: flex;
  font-size: 26px;
  font-weight: 600;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 70px;
}

.jnc-hot-app__icon img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.jnc-hot-app__content {
  min-width: 0;
}

.jnc-hot-app__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 3px;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jnc-hot-app__name a {
  color: var(--theme-black-color, #20232a);
  text-decoration: none;
}

.jnc-hot-app__name a:hover,
.jnc-hot-app__name a:focus {
  color: var(--jnc-hot-app-accent);
}

.jnc-hot-app__meta {
  color: var(--jnc-hot-app-muted);
  display: block;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jnc-hot-app__meta-item + .jnc-hot-app__meta-item::before {
  content: '|';
  margin: 0 7px;
}

.jnc-hot-app__button {
  align-items: center;
  border: 1px solid var(--jnc-hot-app-accent);
  border-radius: 999px;
  color: var(--jnc-hot-app-accent);
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  min-width: 72px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.jnc-hot-app__button:hover,
.jnc-hot-app__button:focus {
  background: var(--jnc-hot-app-accent);
  color: #fff;
}

@container (max-width: 300px) {
  .jnc-hot-app {
    gap: 10px;
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .jnc-hot-app__icon {
    border-radius: 14px;
    width: 60px;
  }

  .jnc-hot-app__button {
    min-width: 62px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jnc-hot-app__button {
    transition: none;
  }
}
